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.

Author pbos
Recipients pbos
Date 2010-08-04.13:58:46
SpamBayes Score 6.99482e-05
Marked as misclassified No
Message-id <1280930332.3.0.143681677902.issue9511@psf.upfronthosting.co.za>
In-reply-to
Content
When reading from piped stdin, python has trouble decoding some special characters.

To reproduce, run the following command from cmd.exe:

  echo ü | C:\Python31\python.exe pycat.py

UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 0: character maps to <undefined>

I've been able to reproduce this in a German version of Windows Vista, which I use at work. I detected this error when trying to pipe (and parse) output from the ping command, which contains non-simple characters. If I don't pipe and just type into the program, it works just fine, even with "strange" characters.
History
Date User Action Args
2010-08-04 13:58:52pbossetrecipients: + pbos
2010-08-04 13:58:52pbossetmessageid: <1280930332.3.0.143681677902.issue9511@psf.upfronthosting.co.za>
2010-08-04 13:58:47pboslinkissue9511 messages
2010-08-04 13:58:46pboscreate