Xavier Gnata wrote:
With a = u"é" I get no error but also nothing as a title. No strange characters. Nothing.
This is working for me with the latest svn version, as well as 0.90.1, on Linux with Python 2.5 and Tcl/Tk 8.4.
There are other things that could be going wrong. The encoding of your terminal may not match your default encoding in your Python interpreter. If you're using Linux, can you please send the output of:
> locale > python -c "import locale; print locale.getpreferredencoding()"If all is working correctly, you should get the following in your python interpreter:
>>> a = u"é" >>> ord(a) 233If you're using an editor (i.e. not using pylab interactively), you'll need to make sure that it is outputting in the correct encoding, and respecting the
# -*- coding: utf-8 -*-line. Recent versions of emacs do this, but I can't really speak for others.
I have attached a test script that works for me. It even includes some Greek characters as Unicode which work if you select a Unicode font with those characters.
Cheers, Mike
unicode.py
Description: application/python
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users