Can Python write foreign characters to the console?

"Martin v. Löwis" martin at
Fri Dec 16 07:32:11 CET 2005

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 u"Martin v. Löwis"

in a Python script, and it should work.

If it doesn't, you should tell us what operating system and
what console program you are using.


More information about the Python-list mailing list