[New-bugs-announce] [issue28333] input() with Unicode prompt produces mojibake on Windows
Adam Bartoš
report at bugs.python.org
Sat Oct 1 11:20:25 EDT 2016
New submission from Adam Bartoš:
In my setting (Python 3.6b1 on Windows), trying to prompt a non-ASCII character via input() results in mojibake. This is related to the recent fix of #1602 and so is Windows-specific.
>>> input("α")
╬▒
The result corresponds to print("α".encode("utf-8").decode("cp852")). That cp852 the default terminal encoding in my locale.
----------
components: Unicode, Windows
messages: 277821
nosy: Drekin, ezio.melotti, haypo, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: input() with Unicode prompt produces mojibake on Windows
type: behavior
versions: Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28333>
_______________________________________
More information about the New-bugs-announce
mailing list