Joob Posted October 19, 2017 Share Posted October 19, 2017 Good, I am having a problem with UTF-8 decryption in Subject .. <?=htmlentities($email['subject'])?> Imagine that a Smile appears in the Subject, it appears with this encoding =?UTF-8?Q?Fwd=3A_=F0=9F=94=B4_THE_EMAIL And I wanted it to appear this way THE EMAIL I already tried to do some research, but they are not working .. Regards Quote Link to comment https://forums.phpfreaks.com/topic/305402-problem-with-utf-8-in-subject/ Share on other sites More sharing options...
cloetensbrecht Posted October 19, 2017 Share Posted October 19, 2017 Have you looked to the encoding of your php file? In your editor you can normaly see what type of encoding your dile is using. It should also be utf8. Quote Link to comment https://forums.phpfreaks.com/topic/305402-problem-with-utf-8-in-subject/#findComment-1552857 Share on other sites More sharing options...
cloetensbrecht Posted October 19, 2017 Share Posted October 19, 2017 It also depends on how you send your email. If you use sendmail you can enable utf-8. Maybe you should give us the full code? Quote Link to comment https://forums.phpfreaks.com/topic/305402-problem-with-utf-8-in-subject/#findComment-1552858 Share on other sites More sharing options...
requinix Posted October 20, 2017 Share Posted October 20, 2017 That's now emails do UTF-8 encodings. It's normal. Use iconv_mime_decode. Quote Link to comment https://forums.phpfreaks.com/topic/305402-problem-with-utf-8-in-subject/#findComment-1552869 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.