Message250180
| Author |
martin.panter |
| Recipients |
ezio.melotti, martin.panter, vstinner, yves |
| Date |
2015年09月08日.11:07:59 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1441710480.23.0.874861462005.issue25028@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
By default, open("test.json") will open the file in text mode, decoding from the encoding determined by your environment. See <https://docs.python.org/3.4/library/functions.html#open>, in particular, "The default encoding is platform dependent (whatever locale.getpreferredencoding() returns)".
If your file’s encoding is determined some other way, you should specify that other encoding. For JSON, I understand UTF-8 is generally always used, so you should call open("test.json", encoding="utf-8"). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年09月08日 11:08:00 | martin.panter | set | recipients:
+ martin.panter, vstinner, ezio.melotti, yves |
| 2015年09月08日 11:08:00 | martin.panter | set | messageid: <1441710480.23.0.874861462005.issue25028@psf.upfronthosting.co.za> |
| 2015年09月08日 11:08:00 | martin.panter | link | issue25028 messages |
| 2015年09月08日 11:07:59 | martin.panter | create |
|