[IronPython] unicode bug?

Dino Viehland dinov at exchange.microsoft.com
Mon May 1 17:34:38 CEST 2006


Thanks for the bug report, I've got it filed in our bug database.

I'm thinking we should be able to get to this one for beta 7 if it doesn't end up being too complex (Unicode can always be trickier than you initially expect).



Do you want to help develop Dynamic languages on CLR? (http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038)

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Cheemeng
Sent: Sunday, April 30, 2006 2:59 AM
To: users at lists.ironpython.com
Subject: [IronPython] unicode bug?

hi,

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.

regards,
cheemeng
_______________________________________________
users mailing list
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list