Unicode, command-line and idle

"Martin v. Löwis" martin at v.loewis.de
Thu Apr 6 18:20:23 EDT 2006


a.serrano at vielca.com wrote:
> This works if I use the console but gives the following error if I use
> IDLE:
> 
> Traceback (most recent call last):
>   File "C:\test.py", line 4, in ?
>     text2 = unicode(raw_input(), sys.stdin.encoding)
> AttributeError: PyShell instance has no attribute 'encoding'

What operating system and Python version are you using? This ought to
work.

Regards,
Martin



More information about the Python-list mailing list