angel ignacio colmenares laguado wrote: >>>> a.Name > u'\U00420041\U00440043E\U0834d138\x00' >>>> print a.Name > 𠁁E > > > and this is the problem: i can't get a string from net in pythonnet !!! > > some ideas what is wrong ?
I've a pretty good idea what is wrong. It's related to your changes to runtime.cs. Python on Windows is using UCS-2 (universal character set) to store unicode internally while most Linux distributions are using UCS-4. http://en.wikipedia.org/wiki/UTF-16/UCS-2 The dll import uses Charset.Unicode as a charset. My VS help claims that Charset.Unicode is a 2 bytes Unicode char which let me believe it's UCS2. I'll have to see how I can work around the issue. I may have to manually convert between UCS-2 and UCS-4. :( Christian _________________________________________________ Python.NET mailing list - [email protected] http://mail.python.org/mailman/listinfo/pythondotnet
