[issue25028] Reading unicode json string fails depending on LANG env

2015-09-08 Thread Martin Panter
Martin Panter added the comment: By default, open("test.json") will open the file in text mode, decoding from the encoding determined by your environment. See , in particular, “The default encoding is platform dependent (whatever locale.

[issue25028] Reading unicode json string fails depending on LANG env

2015-09-08 Thread Yves Müller
New submission from Yves Müller: I am trying to read json containing a UTF-8 string from a file. It works when running it from a shell with LANG=en_GB.utf8 set, but fails from the empty environment. > python3 --version Python 3.4.0 > cat test.json { "test": "Ümläute" } > env -u LANG python3 -