Python STILL prints the wrong international letters

Max Møller Rasmussen maxm at normik.dk
Fri May 18 05:52:50 EDT 2001


> From: Michael Ströder [mailto:michael at stroeder.com]
> Brian wrote:
> > Python 2.0, win 98, no problemos med mobilos

;-)

> > C:\WINDOWS>python
> > Python 2.0 (#8, Oct 16 2000, 17:27:58) [MSC 32 bit (Intel)] on win32
> > Type "copyright", "credits" or "license" for more information.
> > >>> print 'æøå'
> > æøå
> > >>>
> 
> Me too. ;-)
> 
> Python 2.1 (#8, Apr 20 2001, 19:22:23) 
> [GCC 2.95.2 19991024 (release)] on linux2
> Type "copyright", "credits" or "license" for more information.
> >>> print 'æøå'
> æøå

Well actually me too, but only when I start Python from an ordinary window
prompt.

>>> print 'æøåÆØÅ'
æøåÆØÅ 

>From PyWin I still get garbage when printing.

The following produces garbage from the windows prompt though :-(

>>> f = open('c:/temp/maxm_out.txt', 'w')
>>> f.write('æ-ø-å-Æ-Ø-Å')
>>> f.close()

regards

    Max M




More information about the Python-list mailing list