Python: UnicodeEncodeError when reading from stdin

Posted by hansfbaier on Stack Overflow See other posts from Stack Overflow or by hansfbaier
Published on 2010-03-18T06:36:30Z Indexed on 2010/03/18 6:41 UTC
Read the original article Hit count: 470

Filed under:
|
|

When running a Python program that reads from stdin, I get the following error:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 320: ordinal not in range(128)

How can I fix it?

© Stack Overflow or respective owner

Related posts about python

Related posts about unicode