I create a JSON file with special characters as strings.
I create for example a dict with
dict[u"Züge"] = ...
json.dump(dict, file)
When i view the dumped file it looks like this:
{
"Z\u00fcge": [
{
Is there a way to write to the file the encoding so that any text editor will automatically display the right characters?
i then get the following error:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 2: ordinal not in range(128)