[issue21194] json.dumps with ensure_ascii=False doesn't escape control characters

2014-04-11 Thread Ned Deily
Changes by Ned Deily : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Pyth

[issue21194] json.dumps with ensure_ascii=False doesn't escape control characters

2014-04-11 Thread Weeble
Weeble added the comment: Ah, sorry for the confusion. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue21194] json.dumps with ensure_ascii=False doesn't escape control characters

2014-04-10 Thread akira
akira added the comment: json.dumps works correctly in this case. Both json/application rfc [1] and ecma json standard [2] say: > All characters may be placed within the quotation marks, except for the > characters that must be escaped: quotation mark (U+0022), reverse solidus > (U+005C), and

[issue21194] json.dumps with ensure_ascii=False doesn't escape control characters

2014-04-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, pitrou, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue21194] json.dumps with ensure_ascii=False doesn't escape control characters

2014-04-10 Thread Weeble
New submission from Weeble: The JSON spec (http://www.json.org/) does not allow unescaped control characters. (See the railroad diagram for strings and the grammar on the right.) If json.dumps is called with ensure_ascii=False, it fails to escape control codes in the range U+007F to U+009F. He