Re: Can Python write foreign characters to the console?

2005-12-19 Thread Sibylle Koczian
Martin v. Löwis schrieb: Michel Claveau wrote: Hi! I have a problem, under win-XP, with this code : # -*- coding: cp-1252 -*- import sys print uMartin v. Löwis print € for Noël print u€ for Noël sys.exit() == Python a provoqué une erreur Am I the only one to have that? P.S. I never

Re: Can Python write foreign characters to the console?

2005-12-18 Thread Michel Claveau
Hi! I have a problem, under win-XP, with this code : # -*- coding: cp-1252 -*- import sys print uMartin v. Löwis print € for Noël print u€ for Noël sys.exit() == Python a provoqué une erreur Am I the only one to have that? Michel Claveau -- @-salutations Michel Claveau --

Re: Can Python write foreign characters to the console?

2005-12-18 Thread Martin v. Löwis
Michel Claveau wrote: Hi! I have a problem, under win-XP, with this code : # -*- coding: cp-1252 -*- import sys print uMartin v. Löwis print € for Noël print u€ for Noël sys.exit() == Python a provoqué une erreur Am I the only one to have that? No. I get multiple errors with

Re: Can Python write foreign characters to the console?

2005-12-17 Thread Martin v. Löwis
Do Re Mi chel La Si Do wrote: That depends on what we call console. Python console? or Windows console? AFAICT, it works in both: if I start Python 2.4 (command line) from the start menu, and have it import a module that prints # -*- coding: iso-8859-1 -*- print uMartin v. Löwis

Re: Can Python write foreign characters to the console?

2005-12-16 Thread Grant Edwards
On 2005-12-16, Bock [EMAIL PROTECTED] wrote: I was just told about Python. My searching and reading over the net I was able to learn that Python can handle foreign characters via Unicodes. Can or does Python write unicode to the screen? Sure. For example, in c++ cout Hello World.

Re: Can Python write foreign characters to the console?

2005-12-16 Thread Martin v. Löwis
Do Re Mi chel La Si Do wrote: On windows, you MUST also configure the console. That's not true. In the standard configuration, all characters from the OEM code page will print fine. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Can Python write foreign characters to the console?

2005-12-16 Thread Do Re Mi chel La Si Do
Hi! That depends on what we call console. Python console? or Windows console? @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Can Python write foreign characters to the console?

2005-12-15 Thread Bock
I was just told about Python. My searching and reading over the net I was able to learn that Python can handle foreign characters via Unicodes. Can or does Python write unicode to the screen? For example, in c++ cout Hello World. would send this string to the screen/monitor. I want to

Re: Can Python write foreign characters to the console?

2005-12-15 Thread Martin v. Löwis
Bock wrote: I was just told about Python. My searching and reading over the net I was able to learn that Python can handle foreign characters via Unicodes. Can or does Python write unicode to the screen? Yes. Just do # -*- coding: iso-8859-1 -*- print uMartin v. Löwis in a Python

Re: Can Python write foreign characters to the console?

2005-12-15 Thread Do Re Mi chel La Si Do
Hi! On windows, you MUST also configure the console. Use CHCP for to force the good code-page. And, right-click + property + font, for to choice the good font. With that, I can visu french accents, cyrillic, etc. @-salutations Michel Claveau --