Message230365
| Author |
ezio.melotti |
| Recipients |
Michael.Kuss, ezio.melotti, r.david.murray, vstinner |
| Date |
2014年10月31日.18:29:07 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1414780147.4.0.762604535817.issue22701@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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": "港区"
} |
|
History
|
|---|
| 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 |
|