OpenTreeMap is a collaborative platform for crowdsourced tree inventory, ecosystem services calculations, urban forestry analysis, and community engagement.
The CSV reader encodes non-ASCII characters as UTF-8, which was causing the header row field validation to fail. Decoding the CSV field names before comparing them to the field names stored in the database resolves the issue.
Testing
Create a new instance centered on Los Angeles
Add a new text custom field to Tree named Localização
Coverage remained the same at 83.844% when pulling f603e39d1515976d6a3dd15d0501ff7b2202b4ee on jwalgran:feature/import-unicode-headers into 0cabbd4cdf64a93186cd77ddbc08bb632a614cac on OpenTreeMap:develop.
The CSV reader encodes non-ASCII characters as UTF-8, which was causing the header row field validation to fail. Decoding the CSV field names before comparing them to the field names stored in the database resolves the issue.
Testing
Localização
Tree: Localização
column: import-with-unicode.csv.zipThe the file should validate successfully and trees added to the map should have values in the
Localização
field.Connects to https://github.com/OpenTreeMap/otm-addons/issues/1467