You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
assignee=Noneclosed_at=<Date2019-12-04.10:27:07.562>created_at=<Date2018-05-29.14:29:39.270>labels= ['3.7', '3.8', 'type-bug', 'library', '3.9']
title='parse failed for mutibytes characters, encode will show in \\xxx'updated_at=<Date2019-12-04.10:27:17.745>user='https://github.com/zhouronghuaztecomcn'
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;
if xxx.txt is encoded in utf8(without bom for most of the time), because with no bom, json.tool will think it is encoded in ansi, and decode fail.
as now, utf8 is widely use, set default to utf8 for most of the time when auto detect encoding failed