Unable to run print('Réussi') on windows and on linux
marc.vanhoomissen at gmail.com
marc.vanhoomissen at gmail.com
Thu Aug 14 08:35:51 EDT 2014
Hello,
This very simple program runs well on windows 7
# -*- utf8 -*-
print('Réussi')
But, when I start the vrey same file on Linux (ubuntu 14), I got:
Traceback (most recent call last):
File "/partages/bureau/PB/Dev/Python3/test.py", line 2, in <module>
print('R\xe9ussi')
UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 1: ordinal not in range(128)
What should i do to let the same program run on both OS, without changes?
Thank you for your answer
Marc Vanhoomissen
More information about the Python-list
mailing list