anand14 Posted February 1, 2011 Share Posted February 1, 2011 I am writing a script to read a mail box and fetch mail body using php function "imap_fetchbody". If mail content encoding is UTF-8 then no problem but mail send from IPAd having ascii encoding and replace the new line with =20 along with many other changes. can anyone help me out with this in converting it to UTF-8 ?? Quote Link to comment https://forums.phpfreaks.com/topic/226334-php-ascii-to-utf-8-conversion/ Share on other sites More sharing options...
anand14 Posted February 2, 2011 Author Share Posted February 2, 2011 when i read the mail manually logging in the text i found is perfect , but when i fetch the mail body using php script all line get =20 at the end. it is happening only in case when mail encoding is ASCII. Quote Link to comment https://forums.phpfreaks.com/topic/226334-php-ascii-to-utf-8-conversion/#findComment-1168718 Share on other sites More sharing options...
Mr_J Posted February 2, 2011 Share Posted February 2, 2011 For some reason, MIME-Version1.0 rings a bell... :? Quote Link to comment https://forums.phpfreaks.com/topic/226334-php-ascii-to-utf-8-conversion/#findComment-1168767 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.