Re: [Matplotlib-users] Using non ascii characters

2008-01-21 Thread BL
> To use non-ascii characters, you need prefix the string literal with a > 'u'. For example: I thought that the u"string" notation was only needed when characters had to be handled with their utf-8 code Replacing the r's with u's in the strings in your example solves the > problem for me on 0.9

Re: [Matplotlib-users] Using non ascii characters

2008-01-21 Thread Michael Droettboom
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 th

Re: [Matplotlib-users] Using non ascii characters

2008-01-21 Thread BL
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 : matplotl

Re: [Matplotlib-users] Using non ascii characters

2008-01-21 Thread Michael Droettboom
This probably depends on the backend you are using. Which backend and on which platform are you having trouble with? 0.90.1 had a number of Unicode and non-ascii problems that 0.91.2 resolves. You may want to try that. Failing that, can you attach a small script that exhibits the problem? T

[Matplotlib-users] Using non ascii characters

2008-01-21 Thread BL
Hi, I would like to use non ascii characters in title and label but with my current intallation it does not work properly. There's no warning or error messages when I set a title with some non ascii characters (I use iso-88599-1 characters, like é or à), but I get a empty square instead of thes