[dev] Get Mail Part as UTF-8

Claus Ruete claus.ruete at student.uni-tuebingen.de
Sat Dec 28 14:11:45 UTC 2013


Hi,

i've been told I could ask for help here, and I'm desperately trying to figure out the Horde_Imap_Client, but it doesn't really work for me...

I basically just want to display mails from an IMAP server in utf-8 and HTML.

It's not easy to get started with horde_imap_client, the speed is great compared to PHP's imap_* API, and I think it would be totally awesome and just exactly fit my needs if I was able to properly use it, but I can't find a good documentation and that adds a lot of frustration to the developing process because I don't really know what class does what, what method does what and what encoding is used where.

I've read the following example: http://wiki.horde.org/Doc/Dev/Imap_Client/Examples and it works for me, but for about half of the mails I don't get proper utf-8 returned, so PHP's json_encode doesn't work :(

So I was hoping somebody could help me with that? I just need everything in utf-8 and nothing else...

Thanks in advance :)

C.


More information about the dev mailing list