-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use unicode strings with Python 2 #76
Comments
When I use the IPython notebook, any text like "Être à côté" will work. When I use a .py file, I generally need to declare the encoding at the beginning of the file, like this:
Have you tried that ? |
I'm using the IPython notebook with Python 2 and I get the error I posted above. Are you using Python 3 with the IPython notebook? |
I use IPython 2.0.0 which runs with Python 2.7.3 on my computer. Strange. |
I don’t know :) On 18 Nov 2014, at 19:06, oz26 notifications@github.com wrote:
|
I'm not sure I understand what's going on. @oz26 do you have the same bug ? |
@flothesof The font matters: if the font doesn't support those characters you'll see question marks. See this thread and this one on the ImageMagick forum for more details. |
Hey thanks for writing this here. This might be it. I'm going to try this again and post the result here. |
@flothesof Did you ever get around to testing this with a different font? Was what @adamserafini suggested the solution to your problem? If so, we could add a hint about that to the documentation. |
Ping @flothesof |
Hi everyone, Thanks for helping me out on this. I'll close the issue now. Best |
I'm trying to use French labels within a TextClip.
However, the rendering with ImageMagick fails:
There seems to be a possible workaround by doing the following:
But this won't get me any UTF-8 text on the picture. Instead, I get the classical encoding mismatched characters.
Any idea on how to fix this?
Thanks!
The text was updated successfully, but these errors were encountered: