Re: UTF-8 and stdin/stdout?
> Shouldn't you do data = data.decode('utf8') ? Yes, that's it! Thanks. -- dave -- http://mail.python.org/mailman/listinfo/python-list
UTF-8 and stdin/stdout?
Hi, I have problems getting my Python code to work with UTF-8 encoding when reading from stdin / writing to stdout. Say I have a file, utf8_input, that contains a single character, é, coded as UTF-8: $ hexdump -C utf8_input c3 a9 0002 If I read this file by