I use imap_fetchbody to download email from my personal email to a MYSQL DB and when i use with special characters, like accents, in my DB save n? instead of nº for example
Anyone can help me with this problem?
Example:
$data = imap_fetchbody($mbox,$mid,'0');
Best Regards.
This sounds more like a MySQL issue than an IMAP issue.
Try encoding the data as UTF-8. You may also need to specify the character set used by the tables in your database.
try to convert like this $data = imap_qprint(imap_fetchbody($mbox,$mid,'0'));
before the db insertion.