Message229834
If I fix your example so it runs:
json.dump({'name': "港区"}, open('myfile.json', 'w'), indent=4, separators=(',', ': '), ensure_ascii=False)
I get the expected output:
rdmurray@pydev:~/python/p34>cat myfile.json
{
"name": "港区"
}
That example won't work in python2, of course, so you'd have to show us your actual code there. |
|
Date |
User |
Action |
Args |
2014-10-22 19:39:35 | r.david.murray | set | recipients:
+ r.david.murray, vstinner, ezio.melotti, Michael.Kuss |
2014-10-22 19:39:34 | r.david.murray | set | messageid: <1414006774.99.0.721117135515.issue22701@psf.upfronthosting.co.za> |
2014-10-22 19:39:34 | r.david.murray | link | issue22701 messages |
2014-10-22 19:39:34 | r.david.murray | create | |
|