Skip to content

Commit

Permalink
Merge pull request #1253 from Signbank/api_interface
Browse files Browse the repository at this point in the history
#1238: Use utf8 for json package as needed for non-English.
  • Loading branch information
susanodd committed May 29, 2024
2 parents a9f0e76 + edc0b17 commit 7c3fece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion signbank/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1608,7 +1608,7 @@ def create_zip_with_json_files(data_per_file, output_path):
for filename, data in data_per_file.items():
if isinstance(data, list) or isinstance(data, dict):
try:
output = json.dumps(data, indent=INDENTATION_CHARS)
output = json.dumps(data, indent=INDENTATION_CHARS, ensure_ascii=False).encode('utf8')
except TypeError:
print('problem processing json.dumps on ', filename)
output = ''
Expand Down

0 comments on commit 7c3fece

Please sign in to comment.