[ckan-dev] Insert automated data into Datastore
Ian Ward
ian at excess.org
Thu Feb 14 14:17:13 UTC 2013
On Thu, Feb 14, 2013 at 6:31 AM, Lasse Vestergaard <ibbernik at gmail.com> wrote:
>> The first problem is that it seems like the JSON parsing won't accept æøå
>> (danish letters). I havest from a CSV file and I know it's utf-8 encoded.
>> When I look in the CKAN log I only get:
>>
>> Bad request data: Error decoding JSON data. Error:
>> UnicodeDecodeError('utf8', 'h\xf8j', 1, 2, 'invalid start byte')
>>
>> h\xf8j should be "høj" and it's the \xf8 (ø) that is the problem.
>
>
> The above has not been solved yet. Any suggestions?
Try using UTF-8 to encode your "ø". The result should be '\xc3\xb8'.
'\xf8' is "ø" in iso8859-1.
Ian
More information about the ckan-dev
mailing list