Message230365
The example works for me with both python 2 and 3. I'm going to close this in a while if OP doesn't reply.
$ python2 -c "import json; json.dump({'name': '港区'}, open('py2.json', 'w'), indent=4, separators=(',', ': '), ensure_ascii=False)" && cat py2.json
{
"name": "港区"
}
$ python3 -c "import json; json.dump({'name': '港区'}, open('py3.json', 'w'), indent=4, separators=(',', ': '), ensure_ascii=False)" && cat py3.json
{
"name": "港区"
} |
|
Date |
User |
Action |
Args |
2014-10-31 18:29:07 | ezio.melotti | set | recipients:
+ ezio.melotti, vstinner, r.david.murray, Michael.Kuss |
2014-10-31 18:29:07 | ezio.melotti | set | messageid: <1414780147.4.0.762604535817.issue22701@psf.upfronthosting.co.za> |
2014-10-31 18:29:07 | ezio.melotti | link | issue22701 messages |
2014-10-31 18:29:07 | ezio.melotti | create | |
|