You are here: question about php script handling/displaying UTF8 email « All PHP « IT news, forums, messages
question about php script handling/displaying UTF8 email

Posted by chris_fieldhouse@hotmail.com on 01/23/06 17:10

Hi,

I'm almost done with a php driven email filter and automated forwarder,
I've tested it out with various emails and ironed out plain text and
html.
But this final item has me stumped.

When processing an email which contains UTF8 encoded characters, I
can't work out how to detect the presence of the UTF8 characters, so I
get =E2=80=99 displayed instead of a '.
And when forwarded, the =E2=80=99 is sent as plain text losing the
information that it is a utf8 encoded character as opposed to plain
text.

This is the last item I need to resolve.

I tried looking up/searching on:
utf8_decode
utf8_encode
mb_convert_encoding (actually I get function not found when I try it in
the script)
imap_utf8

but can't work it out.
I want to do either of the following
1) convert the utf8 encoded characters to closest local characters or
html codes
or
2) inject headers when the email is forwarded so that the recipents
email client will recognise correctly the presence of the utf8
characters.

Also, what is the easiest way to detect the presence of the utf8
characters, is there a header record I can search for?

Any help would be appreciated as this is furstrating me.

Chris.

 

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

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