You are here: Re: Email header decoding « PHP Programming Language « IT news, forums, messages
Re: Email header decoding

Posted by Manuel Lemos on 08/24/07 19:37

Hello,

on 08/24/2007 12:56 PM pmz said the following:
> I've got a problem with decoding e-mail message subject, which has
> been read within usage of Pear_Mail_Mime library.
>
> There are some elements unwelcome in my subject string, such as:
>
> =?ISO-8859-2?Q?My subject.
>
> Especially when subject contains polish characters, i.e.:
>
> =?ISO-8859-2?Q?Temat listu, bardzo wa=BFny, gdy=BF zawi=EAr=B1
> p=F3l=B6ki=EA =BF=F1=B1ki, =
>
> What is the easiest method of decoding it into the UTF-8 encoding?
> Probably it is a common problem, so where can I find a solution for
> it?

That is q-encoding. You need to decode that string and then you can
convert to UTF-8.

Take a look at this MIME parser class that can decode messages with
headers like that:

http://www.phpclasses.org/mimeparser


--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация