a question about Chinese characters in a Python Program
John Machin
sjmachin at lexicon.net
Tue Oct 21 20:31:11 EDT 2008
On Oct 22, 11:07 am, Ben Finney <bignose+hates-s... at benfinney.id.au>
wrote:
> John Machin <sjmac... at lexicon.net> writes:
> > What is that 0+IBM-127 +IBw-guess+IB0- gibberish in your posting?
>
> It wasn't in my message as sent to my news server, nor as I read the
> message in comp.lang.python. The message was encoded using UTF-8.
> Perhaps it's since been munged in transit to your eyeballs by any of a
> number of intermediaries.
Would you believe:
>>> '0+IBM-127 +IBw-guess+IB0-'.decode('utf7')
u'0\u2013127 \u201cguess\u201d'
More information about the Python-list
mailing list