[New-bugs-announce] [issue27413] Add an option to json.tool to bypass non-ASCII characters.

Wei-Cheng Pan report at bugs.python.org
Wed Jun 29 07:49:29 EDT 2016


New submission from Wei-Cheng Pan:

This patch adds a command line option "--no-escape" that allows json.tool to display non-ASCII characters.

e.g.:

$ echo '"測試"' | python -m json.tool
"\u6e2c\u8a66"

$ echo '"測試"' | python -m json.tool --no-escape
"測試"

----------
components: Library (Lib)
files: json-add-an-option-to-bypass-non-ascii-characters.patch
keywords: patch
messages: 269479
nosy: Wei-Cheng.Pan
priority: normal
severity: normal
status: open
title: Add an option to json.tool to bypass non-ASCII characters.
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file43578/json-add-an-option-to-bypass-non-ascii-characters.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27413>
_______________________________________


More information about the New-bugs-announce mailing list