homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:00martin.pantersetrecipients: + martin.panter, vstinner, ezio.melotti, yves
2015年09月08日 11:08:00martin.pantersetmessageid: <1441710480.23.0.874861462005.issue25028@psf.upfronthosting.co.za>
2015年09月08日 11:08:00martin.panterlinkissue25028 messages
2015年09月08日 11:07:59martin.pantercreate

AltStyle によって変換されたページ (->オリジナル) /