[issue21808] 65001 code page not supported

eryksun report at bugs.python.org
Thu Jun 19 16:07:10 CEST 2014


eryksun added the comment:

> Setting the Windows console encoding to cp65001 using the chcp 
> command doesn't make the Windows console fully Unicode compliant. 
> It is a little bit better using TTF fonts, but it's not enough. 
> See the old issue #1602 opened 7 years ago and not fixed yet.

It's annoyingly broken for me due to the problems with WriteFile and ReadFile.

    >>> print('\u0100')             
    Ā
    
    >>>

Note the extra line because write() returns that 2 characters were written instead of 3 bytes. So the final linefeed byte gets written again. 

Let's buy 4 and get 1 free:

    >>> print('\u0100' * 4)
    ĀĀĀĀ
    Ā
    
    >>>

----------

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


More information about the Python-bugs-list mailing list