classification
Title: Can't input non-ascii characters in interactive mode
Type: behavior Stage:
Components: Unicode Versions: Python 3.0
process
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 2007-09-04 09:38 by philyoon. 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.
History
Date User Action Args
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