python+ncurses: I can't display accents

Fabrice DELENTE fdelente at
Sat Jan 27 08:36:13 CET 2007

To really be sure that the problem is when I use python, I tried in C:

#include <stdio.h>
#include <ncurses.h>

int main(void)
  initscr();		  /* Start curses mode */
  // printw("àéïoù");	  /* Print Hello World */
  addstr("àéïoù");	  /* Print Hello World */
  refresh();	   	  /* Print it on to the real screen */
  getch();	    	  /* Wait for user input */
  endwin();	     	  /* End curses mode */

and both my tries (with printw, or with addstr) showed the 8-bot chars


More information about the Python-list mailing list