Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

how can i translate this kind of message returned by the PEAR POP3 module:

For example, in this sentence I should see: "Félicitations" instead of

Is there a php function to do that?
One thing, sometimes, the message returned is not encoded, sometimes it is
encoded with UTF8 etc etc.

Many thanks for your help


Re: ISO-8859-1

*** WebRod escribió/wrote (Mon, 24 Jan 2005 21:10:58 +0100):
Quoted text here. Click to load it

This may help:


-+ Álvaro G. Vicario - Burgos, Spain
+- (la web de humor barnizada para la intemperie)
++ Manda tus dudas al grupo, no a mi buzón
-+ Send your questions to the group, not to my mailbox

Re: ISO-8859-1

thanks for your answer,
unfortunatelly it does not remove all the "=?ISO-8859-1?Q?".

I use mb_decode_mimeheader instead.

The last problem is that sometimes i get "_" instead space before I use
mb_decode_mimeheader and even after.

any idea?

Quoted text here. Click to load it

Re: ISO-8859-1

Quoted text here. Click to load it

Right.  That is the magic sequence that tells you it needs to be decoded.
You can also get ?B? as the last three characters, which says the rest of
the line is BASE64 encoded, rather than quoted-printable.

Quoted text here. Click to load it

Right.  That's part of the specification for this e-mail header encoding.
You need to change the '_' to ' ' afterward
- Tim Roberts,
  Providenza & Boekelheide, Inc.

Re: ISO-8859-1

"nomail13" wrote:
Quoted text here. Click to load it

See the script here:
The script includes functions that do that kind of translation. The
negative: you have to wade thru a lot of code, but they do have your

Posted using the interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL:
Visit Topic URL to contact author (reg. req'd).  Report abuse:

Site Timeline