Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue33684

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:parse failed for mutibytes characters, encode will show in \xxx
Type:behaviorStage:resolved
Components:Library (Lib)Versions:Python 3.9, Python 3.8, Python 3.7
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: ezio.melotti, methane, miss-islington, vstinner, zhou.ronghua
Priority:normalKeywords:patch

Created on2018-05-29 14:29 byzhou.ronghua, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 7203closedpython-dev,2018-05-29 14:31
PR 7286closedpython-dev,2018-05-31 14:45
PR 17460mergedmethane,2019-12-04 06:39
PR 17464mergedmiss-islington,2019-12-04 09:39
PR 17465mergedmethane,2019-12-04 10:05
Messages (4)
msg318039 -(view)Author: zhou.ronghua (zhou.ronghua)*Date: 2018-05-29 14:29
when type this command in windows(xp or win7, all the same):python -m json.tool xxx.txt xxx.jsonif 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
msg357786 -(view)Author: Inada Naoki (methane)*(Python committer)Date: 2019-12-04 09:39
New changeset808769f3a4cbdc47cf1a5708dd61b1787bb192d4 by Inada Naoki in branch 'master':bpo-33684: json.tool: Use utf-8 for infile and outfile. (GH-17460)https://github.com/python/cpython/commit/808769f3a4cbdc47cf1a5708dd61b1787bb192d4
msg357789 -(view)Author: miss-islington (miss-islington)Date: 2019-12-04 09:57
New changeseta75cad440ab50d823af5f06e51dfed3a319f1e8c by Miss Islington (bot) in branch '3.8':bpo-33684: json.tool: Use utf-8 for infile and outfile. (GH-17460)https://github.com/python/cpython/commit/a75cad440ab50d823af5f06e51dfed3a319f1e8c
msg357791 -(view)Author: Inada Naoki (methane)*(Python committer)Date: 2019-12-04 10:26
New changesete0f148e6635480521036415bd782c3424fe6c619 by Inada Naoki in branch '3.7':bpo-33684: json.tool: Use utf-8 for infile and outfile. (GH-17460)https://github.com/python/cpython/commit/e0f148e6635480521036415bd782c3424fe6c619
History
DateUserActionArgs
2022-04-11 14:59:01adminsetgithub: 77865
2019-12-04 10:27:17methanesetcomponents: + Library (Lib), - Unicode
2019-12-04 10:27:07methanesetstatus: open -> closed
stage: patch review -> resolved
resolution: fixed
versions: + Python 3.7, Python 3.9
2019-12-04 10:26:29methanesetmessages: +msg357791
2019-12-04 10:05:53methanesetpull_requests: +pull_request16944
2019-12-04 09:57:59miss-islingtonsetnosy: +miss-islington
messages: +msg357789
2019-12-04 09:39:52miss-islingtonsetpull_requests: +pull_request16943
2019-12-04 09:39:37methanesetnosy: +methane
messages: +msg357786
2019-12-04 06:39:59methanesetpull_requests: +pull_request16941
2018-05-31 14:45:43python-devsetpull_requests: +pull_request6912
2018-05-29 14:44:15zhou.ronghuasetnosy: +ezio.melotti,vstinner

type: behavior
components: + Unicode
versions: + Python 3.8
2018-05-29 14:31:13python-devsetkeywords: +patch
stage: patch review
pull_requests: +pull_request6838
2018-05-29 14:29:39zhou.ronghuacreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp