text_864 = "\xd1"
unicode_string = unicode(text_864, encoding="cp864") # cp864 = IBM 864

The above code is working with Python 2.4.

Unfortunately, it doesn't support IBM 420 & Nafitha. The mapping between IBM 
864 and unicode is in Lib/encodings & the file is very simple. You can add your 
own easily, if you knew how to do the decoding first ;)




Mohammad Tayseer
http://spellcoder.com/blogs/tayseer

 
---------------------------------
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to