PHP Classes

Charset detection

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  Charset detection  >  (Un) Subscribe thread alerts  
Subject:Charset detection
Summary:Charset detection and conevrting to UTF-8
Messages:3
Author:Petr G
Date:2007-11-03 19:19:33
Update:2007-11-04 12:06:46
 

  1. Charset detection   Reply   Report abuse  
Picture of Petr G Petr G - 2007-11-03 19:19:33
What is the easist way, how to automaticly detect the charset of decoded mail and how to convert decoded parts into UTF-8?
Thanks for reply.

  2. Re: Charset detection   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-11-03 20:56:59 - In reply to message 1 from Petr G
Character set encoding is usually specified in the content-type headers. If it is iso-8859-1, you can use utf8_encode to convert to UTF-8. For other character sets, you need to use other libraries.

  3. Re: Charset detection   Reply   Report abuse  
Picture of Petr G Petr G - 2007-11-04 12:06:46 - In reply to message 2 from Manuel Lemos
Thanks for reply. I found this one:
phpclasses.org/browse/package/1360. ...

And thanks for your chlass - it was very helpful.