Pillow icon indicating copy to clipboard operation
Pillow copied to clipboard

ImageDraw Text can't handle utf-8 encoding?

Open crbreingan opened this issue 12 years ago • 4 comments

I am trying to draw names on an image to make a family tree. One name has special characters, specifically č, and ć. But when I put these characters into the draw.text() function it looks like it didn't decode it correctly. It writes Ä▯ for both of the special characters.

I'm using Python 2.7 x86 with the precompiled Pillow 2.3.0 from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pil

crbreingan avatar Mar 17 '14 18:03 crbreingan

This is probably fixed by #517.

wiredfool avatar Mar 17 '14 18:03 wiredfool

@crbreingan Can you test with master?

aclark4life avatar Mar 17 '14 19:03 aclark4life

I just keep running into problem after problem with installing the lastest version. That's why I use the precompiled version. It just works.

For installing the master I had to install mingw, edit distutils cygwincompiler.py, and now I'm stuck with an error that _imagingft C module is not installed. Isn't there some sort of installation instructions for all this? One with links to the necessary files?! I hate having to keep googling for error messages.

crbreingan avatar Mar 18 '14 17:03 crbreingan

@crbreingan You really don't want to be using mingw if you can help it, see #553

aclark4life avatar Mar 18 '14 17:03 aclark4life