473,322 Members | 1,287 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,322 software developers and data experts.

ISO-8859-1

Hi

how can i translate this kind of message returned by the PEAR POP3 module:
=?ISO-8859-1?Q?eBay_-_F=E9licitations=A0!_Achat_?=
=?ISO-8859-1?Q?de_l'objet_:_

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

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

Rod
Jul 17 '05 #1
4 1457
*** WebRod escribió/wrote (Mon, 24 Jan 2005 21:10:58 +0100):
For example, in this sentence I should see: "Félicitations" instead of
"F=E9licitations".


This may help:

quoted_printable_decode()
--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (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
--
Jul 17 '05 #2
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?

"Alvaro G. Vicario" <kA*****************@terra.es> a écrit dans le message
de news: 1k******************************@40tude.net...
*** WebRod escribió/wrote (Mon, 24 Jan 2005 21:10:58 +0100):
For example, in this sentence I should see: "Félicitations" instead of
"F=E9licitations".


This may help:

quoted_printable_decode()
--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (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
--

Jul 17 '05 #3
"WebRod" <no****@bouygtel.fr> wrote:

thanks for your answer,
unfortunatelly it does not remove all the "=?ISO-8859-1?Q?".
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.
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.


Right. That's part of the specification for this e-mail header encoding.
You need to change the '_' to ' ' afterward
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Jul 17 '05 #4
"nomail13" wrote:
Hi

how can i translate this kind of message returned by the PEAR POP3
module:
=?ISO-8859-1?Q?eBay_-_F=E9licitations=A0!_Achat_?=
=?ISO-8859-1?Q?de_l’objet_:_

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

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

Rod


See the script here: http://www.cs.iitm.ernet.in/netnews/doc/guide.php
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
answer.

--
Posted using the http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbforumz.com/PHP-ISO-8859-ftopict190860.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=649790
Jul 17 '05 #5

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

Similar topics

13
by: jrefactors | last post by:
When people say C programming language, they mean ISO C89? The latest C is ISO C99, but I heard this is not commonly used. What's the differences between ISO C89 and ISO C99? Please advise....
22
by: Sensei | last post by:
Hi! I'm looking for useful libraries that are strictly ISO C. Any kind of library, from lists, stacks, to trees, searching tools, sorting tools... really *any* kind. Do you have any idea? :)...
22
by: pemo | last post by:
ISO C does not allow extra ';' outside of a function int n;; int main(void) { .... } Anyone care to enlighten me as to why ISO C does not allow this, but
2
by: John Daly | last post by:
Hope this is the right place to post this. I recently downloaded iso disc imsges, however my new pc did not come with burning software, and i can not find my old discs. I tried to use the Burning...
9
by: Alok | last post by:
Hi, I want to purchase the ISO C++ standard ISO/IEC 14882:2003 specification for reference. The ANSI store sells the PDF or CD-ROM of the document for $30...
52
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I convert a Number into a String with exactly 2 decimal places?...
1
by: danikar | last post by:
Is there a way to open a file that is inside of an ISO in python? Say I have an ISO file, danikars.iso and on the iso there is a file called information.txt I want to be able to do something...
11
by: ManicQin | last post by:
Hi, I was about to buy the Standard but then I found this link http://www.usatlas.bnl.gov/~dladams/cpp/INCITS+ISO+IEC+14882-2003.pdf Hmmmm... ... The link seems legit so ... what gives? ...
1
by: scotter86 | last post by:
Hi everyone, I'm trying to "burn","mount" what ever you want to call it, an .iso file to a hard disk partition. What I'm trying to do is get this iso on a partition and boot it much like I would a...
10
by: tvnaidu | last post by:
I am using Three pthread functions below, I got ISO error, then I declared int variable called val123, then I assigned, but still I am getting error, any idea?. also I included pthread.h. compiling...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.