On 30-mei-2006, at 9:33, whamoo wrote: > Hi all! > > i'm at war with unicode python and cocoa, and seem that i cannot > win... =) > > i've wrote this function: > > def makeNSString(self, oldString): > try: > oldString = NSString.stringWithUTF8String_(oldString) > return oldString > except Exception, e: > print Exception, e > return oldString
Not teribly relevant, but there's a buglet in your exception dumping code. If you want to print the type of the exception you caught you should use "print e.__class__, e". I'll not comment on the actual issues as you seemm to have solved your problem already. Ronald _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig