d = {'name' : 'Chris Wilder',
'job': 'Soccer Manager \n'}
with open('filepath','w') as f:
json.dump(d, f)
Expected:
{'name' : 'Chris Wilder','job': 'Soccer Manager at Spur's \n'}
Actual:
{'name' : 'Chris Wilder','job': 'Soccer Manager at Spur\u2019s \n'}
There are other unicode characters being encoded such as some chinese symbols like \uf0f0. Is there a way to avoid creating these unicode characters or is it inevitable?
How should I solve this issue?