Till Wagner <[EMAIL PROTECTED]> writes:

> The program should be localized to german, frensh, italian and
> spanish, so the names can include some umlauts and special
> characters (like ä, ü, ö, ß, ß, é and so on). In my program it works
> well, but in the matplotlib-graphs are only squares where the
> umlauts should be. Same with the legend. Any help or tips?

The font encoding doesn't match the encoding you're using. Using
unicode strings, e.g. u"\u00e4" for ä, may work better, assuming of
course that the font does have the characters you need and that the
backend implements unicode text.

Some resources about Unicode in Python are

  http://www.jorendorff.com/articles/unicode/python.html
  http://dalchemy.com/opensource/unicodedoc/

-- 
Jouni


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to