file.write() of non-ASCII characters differs in Interpreted Python than in script run

Pete Dowdell contact at stridebird.com
Wed Aug 26 09:09:11 CEST 2015


On 26/08/15 04:19, RAH wrote:
>   UnicodeEncodeError: 'ascii' codec can't encode character '\\xc7' in position 15: ordinal not in range(128)

(Hi all, this is my first post to the list)

This can be a frustrating issue to resolve, but your issue might be 
solved with this environment variable:
PYTHONIOENCODING=UTF-8

Regards, pd


More information about the Python-list mailing list