Message1695

Author cgroves
Recipients
Date 2007-07-01.09:03:23
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
As I'm trying to explain in the comment, iso-8859-1 isn't really being used as an encoding here.  It maps java byte values, -128 to 127, into the values of a Python str stored as a string, 0-255.  It's a fixed operation having nothing to do with the local encoding.  The fact that it used the local encoding before was broken.  

You can call encode(<yourcharset>) on the returned str from this method to turn it into a unicode object with the encoding you desire.
History
Date User Action Args
2008-02-20 17:17:52adminlinkissue1745880 messages
2008-02-20 17:17:52admincreate