Forum Archive

Foreign characters

dainfo

New to Pythonista and python, I'm amused to try out different scripts.
But when run a script written by Federico Viticci, and I get a constant error when I use one of my native characters (æ, ø, å) in the dialog boxes.

http://6d1f0d2e5a9f9c27cec8-28b934f7b0292a7dfd0ff5946ebc82f1.r53.cf1.rackcdn.com/FantastiAdd.py

Any idee?

JB

omz

This should do the trick:
https://gist.github.com/4177224

It's a bit confusing because it converts utf8 back and forth, that's necessary because the console module's alerts don't return Unicode at the moment. That will probably change in a later update to make it consistent with the clipboard module.

dainfo

Thanks, it works! Need to dive into some books..

J