To use non-ascii characters, you need prefix the string literal with a 'u'. For example:
u"This is a Unicode string" Alternatively, you can write out an 8-bit string and then explicitly decode it into Unicode: unicode("This is UTF-8", "utf-8") Replacing the r's with u's in the strings in your example solves the problem for me on 0.91.2. (I wasn't able to test 0.90.1 -- that still may have internal problems handling Unicode strings in some backends.) Cheers, Mike BL wrote: > I'm using a basic Debian Etch distribution. > I've attached a very simple file showing the problem. On my computer, > neither the title, nor the legend are displayed correctly, and I've got > square instead of each non ascii characters. > > The attached script gives me the following informations : > > matplotlib : 0.90.1 > backend : TkAgg > encoding : UTF-8 > > I will try to install a SVN version of matplotlib and see if this works > better. > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users