On 30/mag/06, at 10:07, Nicholas Riley wrote:

What are you trying to do?  If the string is already Unicode, PyObjC
will make it into a NSString for you. 

Ok i have unicode python string, i was building a extra menu on run time, but if I pass
the unicode python string for creating the menu, the letter like è,à,ù don't appear correctly like:


this must be 'provà'

if i use the function i posted before all work as intended, but raise out that exception....

If you want to encode a Unicode
string as UTF-8, then use oldString.encode('utf-8').

Ok i know, but how to put correctly character on menu and submenu'? (menu item seem work correctly i don't know why....)

Thanks a lot

Matteo Rattotti www.rknet.it

Powered by: 

- MacOsX

- Gnu / Linux Debian Sarge

- Amiga Os 3.9

- Milk


_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to