encoding - arabic(IBM 864) to UNICODE
Mohammad Tayseer
m_tayseer82 at yahoo.com
Sun Mar 18 12:21:49 EDT 2007
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070318/a4264c08/attachment.html>
More information about the Python-list
mailing list