Skip to content

Commit

Permalink
JSON export now includes non-ascii characters
Browse files Browse the repository at this point in the history
  • Loading branch information
ykhadilkar committed May 28, 2014
1 parent 4beb3e3 commit e1ec19d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/datajson/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def write_zip(data, error=None, zip_name='data'):

#Write the data file
if data:
zf.writestr('datajson.txt', json.dumps(data).encode('utf8'))
zf.writestr('datajson.txt', json.dumps(data, ensure_ascii=False).encode('utf8'))

#Write the error log
if error:
Expand Down

0 comments on commit e1ec19d

Please sign in to comment.