In some of my plots I show month names as axes labels.
When I run this on a machine in "French" (i.e. on Win XP changing the Settings - Regional and Language settings" to French the labels don't show correctly if there is an accented character in there e.g. "d�c".
I changed the line 256 in dates.py (matplotlib 0.8) from:
return unicode(dt.strftime(fmt), 'iso-8859-1')
Obviously this is not a correct fix as it will only work in some situations.
I tried to use sys.getdefaultencoding(), instead of hard coding 'iso-8859-1', but on my machine it returns "ascii".
Any suggestions on how to handle this correctly will be very appreciated.