python+ncurses: I can't display accents

Fabrice DELENTE fdelente at mail.cpod.fr
Fri Jan 26 20:04:39 CET 2007


> What have you tried?

I've tried

stdscr.addstr(0,0,"aéïoù")

or

stdscr.addstr(0,0,"leçon")

The ASCII chars show correctly, but the accented characters don't, so I see
'ao' or 'leon' on the screen.

The term in which I display is 8-bit-able, so the problem is either on
ncurses side, or on python side.

I have

#!/usr/local/bin/python
#coding: iso8859-15

at the top of my python file.

-- 
Fabrice DELENTE



More information about the Python-list mailing list