Jump to content

[SOLVED] Decode UTF-8 AND keep the case correct?


spiceydog

Recommended Posts

I'm working with IMAP right now and I've run into a problem. When I get the subject from one of my emails using imap_headerinfo I get a UTF-8 encoded subject. This wasn't a problem with the toaddress because email addresses aren't case sensitive. The problem was however that when I did the conversion everything was put into capital letters.

 

I used this converter:

utf8_decode(imap_utf8($subject))

 

Unconverted I get this:

?utf-8?B?TWljcm9zb2Z0IE9mZmljZSBPdXRsb29rIFRlc3QgTWVzc2FnZQ==?=

 

Converted I get this:

MICROSOFT OFFICE OUTLOOK TEST MESSAGE

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.