Problem on getting various character set from pop3.retr

G

GM

Dear all,

The problem that I am facing now is that, when I use poplib to get a
email message with chinese character set like big5, the character
string is changed automatically to sth like =B8=D5=ACQ=AAM...the OS I
am using is red hat ES4 and the python version I am using is 2.3.4 (it
seems python 2.4 is not available for red hat). My application goal is
to receive the email and convert all character set to UTF-8 and then
store in file. So....long way to go for me, please give me some help
for that, thx~

Regards,

Gary
 
J

John Machin

GM said:
Dear all,

The problem that I am facing now is that, when I use poplib to get a
email message with chinese character set like big5, the character
string is changed automatically to sth like =B8=D5=ACQ=AAM...the OS I
am using is red hat ES4 and the python version I am using is 2.3.4 (it
seems python 2.4 is not available for red hat). My application goal is
to receive the email and convert all character set to UTF-8 and then
store in file. So....long way to go for me, please give me some help
for that, thx~

It's not being "changed automatically" at your end. It arrived like
that. Check out the Content-Transfer-Encoding: message header.

These may help:

http://en.wikipedia.org/wiki/Quoted-printable

http://docs.python.org/lib/module-quopri.html

http://docs.python.org/lib/module-email.html

Cheers,
John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top