[issue33684] parse failed for mutibytes characters, encode will show in \xxx

2018-05-29 Thread zhou.ronghua
Change by zhou.ronghua : -- components: +Unicode nosy: +ezio.melotti, vstinner type: -> behavior versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issu

[issue33684] parse failed for mutibytes characters, encode will show in \xxx

2018-05-29 Thread zhou.ronghua
New submission from zhou.ronghua : when type this command in windows(xp or win7, all the same): python -m json.tool xxx.txt xxx.json if xxx.txt contains Chinese(or other multibytes characters): if xxx.txt is encoded in ansi, xxx.json will encode Chinese as \xxx, very bad to see what they are