imperium2335 Posted September 2, 2011 Share Posted September 2, 2011 Hi, I am trying to get some charecters to display properly in emails that are sent via a form on my site. The finnish characters ä and ö come out as squares when viewed in Outlook. I have tried various encoding types such as UTF-8 and Western European (dreamweaver), both as the script encoding and as the encoding in the mail() function. $body = 'Sähköposti:' ; mail($salesEmail, "Call Back Request", $body, "MIME-Version: 1.0\r\nContent-type: text/html; charset=utf-8\r\nFrom: $salesEmail") ; = 'S�hk�posti:' or just squares in Outlook. I have also tried hard coding them as ä and ö and the symbol literals to no effect. Does anyone know what is causing this? Link to comment https://forums.phpfreaks.com/topic/246255-help-with-encoding-on-generated-form/ Share on other sites More sharing options...
voip03 Posted September 2, 2011 Share Posted September 2, 2011 Use MIME. Add mail headers: MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Link to comment https://forums.phpfreaks.com/topic/246255-help-with-encoding-on-generated-form/#findComment-1264645 Share on other sites More sharing options...
imperium2335 Posted September 2, 2011 Author Share Posted September 2, 2011 Not sure what you mean, I already have that set to html which is required (see above). mail($salesEmail, "Call Back Request", $body, "MIME-Version: 1.0\r\nContent-type: text/html; charset=utf-8\r\nFrom: $salesEmail") ; Link to comment https://forums.phpfreaks.com/topic/246255-help-with-encoding-on-generated-form/#findComment-1264646 Share on other sites More sharing options...
voip03 Posted September 2, 2011 Share Posted September 2, 2011 I am soory it my error Link to comment https://forums.phpfreaks.com/topic/246255-help-with-encoding-on-generated-form/#findComment-1264647 Share on other sites More sharing options...
voip03 Posted September 2, 2011 Share Posted September 2, 2011 Again I have made a spelling mistake. Thank you Link to comment https://forums.phpfreaks.com/topic/246255-help-with-encoding-on-generated-form/#findComment-1264649 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.