[New-bugs-announce] [issue1100] Can't input non-ascii characters in interactive mode

Sangpil Yoon report at bugs.python.org
Tue Sep 4 08:50:40 CEST 2007

New submission from Sangpil Yoon:

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

components: Unicode
messages: 55632
nosy: philyoon
severity: normal
status: open
title: Can't input non-ascii characters in interactive mode
versions: Python 3.0

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list