Unable to run print('Réussi') on windows and on linux

2014-08-14 Thread marc . vanhoomissen
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')

Re: Unable to run print('Réussi') on windows and on linux

2014-08-14 Thread Vincent Vande Vyvre
Le 14/08/2014 14:35, marc.vanhoomis...@gmail.com a écrit : 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

Re: Unable to run print('Réussi') on windows and on linux

2014-08-14 Thread YBM
Le 14/08/2014 14:35, marc.vanhoomis...@gmail.com a écrit : 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

Re: Unable to run print('Réussi') on windows and on linux

2014-08-14 Thread marc . vanhoomissen
Hello YBM, I tried your suggestions, without improvement. Further, see my answer to Vincent Vande Vyre Thanks anyway. -- https://mail.python.org/mailman/listinfo/python-list

Re: Unable to run print('Réussi') on windows and on linux

2014-08-14 Thread marc . vanhoomissen
Le jeudi 14 août 2014 15:22:52 UTC+2, Vincent Vande Vyvre a écrit : Le 14/08/2014 14:35, marc.vanhoomis...@gmail.com a �crit : Hello, This very simple program runs well on windows 7 # -*- utf8 -*- print('R�ussi') But, when I start the vrey same file on Linux

Re: Unable to run print('Réussi') on windows and on linux

2014-08-14 Thread Mark Lawrence
On 14/08/2014 15:04, marc.vanhoomis...@gmail.com wrote: Hello YBM, I tried your suggestions, without improvement. Further, see my answer to Vincent Vande Vyre Thanks anyway. I'm pleased to see that you have answers. In return would you please quote the context. Could you also access this

Re: Unable to run print('Réussi') on windows and on linux

2014-08-14 Thread Anssi Saari
marc.vanhoomis...@gmail.com writes: What should i do to let the same program run on both OS, without changes? You'd want to set the locale on your Ubuntu box to a UTF8 locale. On the command line you'd run sudo dpkg-reconfigure locales and proceed from there, but I guess there might be gooey

Re: Unable to run print('Réussi') on windows and on linux

2014-08-14 Thread Vincent Vande Vyvre
Le 14/08/2014 15:31, YBM a écrit : Le 14/08/2014 14:35, marc.vanhoomis...@gmail.com a écrit : 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

Re: Unable to run print('Réussi') on windows and on linux

2014-08-14 Thread YBM
Le 14/08/2014 16:04, marc.vanhoomis...@gmail.com a écrit : Hello YBM, I tried your suggestions, without improvement. Further, see my answer to Vincent Vande Vyre Thanks anyway. This is indeed very surprising. Are you sure that you have *exactly* this line at the first or second (not later !)

Re: Unable to run print('Réussi') on windows and on linux

2014-08-14 Thread Steven D'Aprano
YBM wrote: Le 14/08/2014 16:04, marc.vanhoomis...@gmail.com a écrit : Hello YBM, I tried your suggestions, without improvement. Further, see my answer to Vincent Vande Vyre Thanks anyway. This is indeed very surprising. Are you sure that you have *exactly* this line at the first or

Re: Unable to run print('Réussi') on windows and on linux

2014-08-14 Thread Peter Otten
marc.vanhoomis...@gmail.com wrote: Le jeudi 14 août 2014 15:22:52 UTC+2, Vincent Vande Vyvre a écrit : Are you really using Python 3 ? $ python3 test.py Actually, when I try using a terminal, it works: $ python3 test.py Réussi But when I issue the same command using webmin (v. 1.700

Re: Unable to run print('Réussi') on windows and on linux

2014-08-14 Thread Ian Kelly
On Thu, Aug 14, 2014 at 9:21 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: YBM wrote: Le 14/08/2014 16:04, marc.vanhoomis...@gmail.com a écrit : Hello YBM, I tried your suggestions, without improvement. Further, see my answer to Vincent Vande Vyre Thanks anyway. This is