473,387 Members | 1,789 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Problem on getting various character set from pop3.retr

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

Sep 9 '06 #1
1 1585

GM wrote:
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

Sep 9 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Paul Schmidt | last post by:
Dear list: I am new to python, and I am trying to figure out the short answer on something. I want to open a POP3 mailbox, read the enclosed mail using the POP3 module, , and then process it...
2
by: brettk | last post by:
Hello All, Here's what I'm trying to do: I need to connect to a pop3 server, download all messages, and copy all of the attachments into a specific directory. The actual email message is...
1
by: Leo Jay | last post by:
when i use POP3.retr() in poplib module, the retr() function will not return until the receiving progress is finished so, is there any way to get the rate of receiving progress? Thanks -- ...
2
by: Steve Greenland | last post by:
For the poplib.POP3 object, docs say: list() Request message list, result is in the form (response, ). If which is set, it is the message to list. But (I've folded the long line): Python...
0
by: Hardy Wang | last post by:
Hi, I developed an application to read email from POP3 server. Some of the codes are below: ------------------------------------------------------------------------------- Server = new...
2
by: Guoqi Zheng | last post by:
Dear sir, I am writing a pop3 component myself. After sending "RETR" command, I use below function to get the response from Pop server. For some pop servers, it works ok, but some other pop...
9
by: Dave | last post by:
I searched the usenet and some mail archives and tried various techniques, but I can't seem to get the .NET 2.0 SDK to work with python. I'm a total newbie when it comes to python installs. I...
1
by: Kevin F | last post by:
I have the following script: emails = for msg in messagesInfo: msgNum = int(msg.split()) msgSize = int(msg.split()) if(msgSize < 20000): message = server.retr(msgNum) Message =...
1
by: rodny.romero | last post by:
Somebody can help me with an example of like Reading post office with VB.Net using protocol POP3, I have obtained the commandos or instructions that protocol POP3 supports, but I have not been able...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.