This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Can't input non-ascii characters in interactive mode
Type: behavior Stage:
Components: Unicode Versions: Python 3.0
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: loewis, philyoon
Priority: normal Keywords:

Created on 2007-09-04 06:50 by philyoon, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg55632 - (view) Author: Sangpil Yoon (philyoon) Date: 2007-09-04 06:50
I'm not sure if this is a bug or a designed behavior, but I think it
would be nice for beginners to be able to enter his/her local characters
from an interactive prompt. As interactive mode lacks source code
encoding declaration, the interpreter seems to assume that its input is
encoded in UTF-8, when the actual characters you enter are not. Fix for
issue #1097 doesn't seem to help. I'm using Microsoft Windows XP Korean.

>>> print('윤상필')
  File "<stdin>", line 1
SyntaxError: (unicode error) illegal encoding
msg55633 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2007-09-04 09:18
Thanks for the report. This is now fixed in r57957 (although I tested it
only on Unix).
msg55635 - (view) Author: Sangpil Yoon (philyoon) Date: 2007-09-04 09:38
It's working fine on Windows XP. Thanks.
Date User Action Args
2022-04-11 14:56:26adminsetgithub: 45441
2007-09-04 09:38:39philyoonsetmessages: + msg55635
2007-09-04 09:18:53loewissetstatus: open -> closed
resolution: fixed
messages: + msg55633
nosy: + loewis
2007-09-04 06:50:52philyoonsettype: behavior
2007-09-04 06:50:39philyooncreate