|
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]
|