Python prints the wrong international letters

Gaute B Strokkenes gs234 at cam.ac.uk
Fri May 18 13:16:51 CEST 2001


On Thu, 17 May 2001, maxm at normik.dk wrote:
> When I try to print the Danish letters æøå I get garbage instead.
> 
>>>> print 'æ-ø-å-Æ-Ø-Å'
> æ-ø-Ã¥-Ã?-Ã~-Ã...
> 
> Has anybody got an idea as to how I can avoid this?

Looks to me like they're being output as UTF-8, but your terminal (or
whatever the windows equivalent of that is) is in ISO 8859-1 mode.
Beyond that, I have no clue.

-- 
Big Gaute                               http://www.srcf.ucam.org/~gs234/
I'm encased in the lining of a pure pork sausage!!



More information about the Python-list mailing list