[IronPython] unicode bug?

Cheemeng lcm at spiralcomms.com
Sun Apr 30 11:58:33 CEST 2006


Sq2 = u'\xb2'
u = unicode(Sq2)
print u is Sq2

in CPython, the unicode function returns back the same str,
in IP, an exception is thrown,
UnicodeDecodeError: Unable to translate bytes [B2] at index 0 from 
specified code page to Unicode.


More information about the Ironpython-users mailing list