[issue35009] argparse throws UnicodeEncodeError for printing help with unicode choices

Serhiy Storchaka report at bugs.python.org
Sat Dec 22 03:39:32 EST 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Even if you encode default values for output, you can not pass unicode values from command line. You can pass a 8-bit string '\xe6\x97\xa9\xe4\xb8\x8a\xe5\xa5\xbd' which differs from a Unicode string u"早上好". Even after resolving the output issue, unicode choices will never work.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35009>
_______________________________________


More information about the Python-bugs-list mailing list