[Pythonmac-SIG] Python Unicode and NSString...

whamoo whamoo at rknet.it
Tue May 30 10:58:06 CEST 2006


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20060530/5816d66e/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mmmmm.jpg
Type: image/jpeg
Size: 12687 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20060530/5816d66e/attachment.jpg 


More information about the Pythonmac-SIG mailing list