[issue14304] Implement utf-8-bmp codec

Andrew Svetlov report at bugs.python.org
Mon Apr 16 14:50:53 CEST 2012


Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:

Tkinter (as Tcl itself) has no support of non-BMP characters in any form. 
It looks like support of UTF-16 without surrogates.
I like to implement codec for that which will process different error modes (strict, replace, ignore etc) as well as others codecs does.

It will allow to support BMP well and control processing of non-BMP in IDLE.

About your second question. 
IDLE has interactive shell. This shell in REPL will try to print expression result. It it contains non-BMP whole result is converted to ASCII with escaping. It's different from standard python console. From my perspective expected behavior is to pass BMP chars and escape only non-BMP.

----------

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


More information about the Python-bugs-list mailing list