spiceydog Posted February 28, 2009 Share Posted February 28, 2009 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 Link to comment https://forums.phpfreaks.com/topic/147342-solved-decode-utf-8-and-keep-the-case-correct/ Share on other sites More sharing options...
Mark Baker Posted February 28, 2009 Share Posted February 28, 2009 If it's available on your server, you could try using iconv_mime_encode() and iconv_mime_decode() instead Link to comment https://forums.phpfreaks.com/topic/147342-solved-decode-utf-8-and-keep-the-case-correct/#findComment-773436 Share on other sites More sharing options...
spiceydog Posted February 28, 2009 Author Share Posted February 28, 2009 That works!! thank you!! Link to comment https://forums.phpfreaks.com/topic/147342-solved-decode-utf-8-and-keep-the-case-correct/#findComment-773453 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.