This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Xuefer.x
Recipients Xuefer.x
Date 2010-02-05.05:07:47
SpamBayes Score 9.413355e-10
Marked as misclassified No
Message-id <1265346469.79.0.269704961777.issue7856@psf.upfronthosting.co.za>
In-reply-to
Content
using iconv:
$ printf "\xf9\xd8" | iconv -f big5 -t utf-8 | xxd
0000000: e8a3 8f                                  ...
$ printf "\xe8\xa3\x8f" | iconv -f utf-8 -t big5 | xxd
0000000: f9d8                                     ..

using python
>>> print "\xf9\xd8".decode("big5")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'big5' codec can't decode bytes in position 0-1: illegal multibyte sequence
>>> print "\xe8\xa3\x8f".decode("utf-8").encode("big5")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'big5' codec can't encode character u'\u88cf' in position 0: illegal multibyte sequence
History
Date User Action Args
2010-02-05 05:07:49Xuefer.xsetrecipients: + Xuefer.x
2010-02-05 05:07:49Xuefer.xsetmessageid: <1265346469.79.0.269704961777.issue7856@psf.upfronthosting.co.za>
2010-02-05 05:07:48Xuefer.xlinkissue7856 messages
2010-02-05 05:07:47Xuefer.xcreate