mitramcc Posted March 24, 2012 Share Posted March 24, 2012 Hy guys, I am having a problem with characters encryption, hopefully somebody can help me... So: I am trying to send an email with SMTP auth and the chars are arriving to my account like this i.e.: 100€ show like 100€ The hole process is like: 1- I select from a database the info I need 2- then I urldecode the data because I urlencoded it earlyer 3- then i use my sendEmail function and "shit happens". I have tried to display the email in the browser and if I dont set the header like this: "<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />" the result is exacly the same as in my email. Also I am putting the header in the email like this: function html($html, $charset = 'utf8', $encoding = 'quoted-printable', $disposition = 'inline'){ . . . $hhtml = 'Content-Type: text/html;'.$this->_crlf."\t".'charset="'.$charset.'"'.$this->_crlf. 'Content-Transfer-Encoding: '.$encoding.$this->_crlf. 'Content-Disposition: '.$disposition; . . . } This is a function from SMTP class. Quote Link to comment https://forums.phpfreaks.com/topic/259624-utf8-mail-problem/ 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.