IATI / CSV2IATI

[DEPRECATED ] - A tool to convert CSVs to IATI XML
Other
5 stars 4 forks source link

Encoding bug #197

Closed Bjwebb closed 2 years ago

Bjwebb commented 10 years ago

When CSV2IATI-backend opens a CSV file it is an encoded string, which is later decoded with the relevant character encoding. However, when grouping the data (if the multiple option is enabled) a decdoded (python unicode type) string is used as a key of undecoded data. This works provided the encoding is simply ascii, but fails otherwise. https://github.com/IATI/CSV2IATI-backend/blob/master/csviati/__init__.py#L187

Example error (where a unicode BOM is the non-ascii character):

KeyError: u'\ufeffproject_ID'

Bjwebb commented 10 years ago

This particular issue has been fixed on master. Remaining task: