By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,530 Members | 2,181 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,530 IT Pros & Developers. It's quick & easy.

imap_fetchbody and character encoding

P: n/a

I use imap_fetchbody to retrieve a message from the server, and I end up
with something which contains lots of characters like this...

I have tried quoted_printable_decode(), which eliminates most of the
problems, however sometimes a message comes in in which pound sterling
signs are converted into characters unreadable by firefox, and
represented by a question mark.

Removing quoted_printable_decode() renders that character as "=A3".

Not all emails are affected, and some are fine.

Does anyone know of how to detect messages which are likely to cause
this problem, and convert those messages into a character encoding that
is correct?

I have tried mb_convert_encoding, with no luck.
Jun 27 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.