IIRC PIL requires UTF-8 encoded text. There's probably some double encoding going on somewhere. Try this instead:
text = title.encode('utf-8') if isinstance(title, unicode) else title
And also use
u'La Raz\xc3\xb3n' instead of u'La Razón'
Last edited by kovidgoyal; 12-27-2011 at 04:34 AM.
|