SolutionCottage.com
Posted  23 Dec 2009 - 16:04:44

Category: PHP


swedish characters in title of email

Issue:
When I was sending data from a form the subject characters got messed up when sending swedish characters.

Solution:
I ended up saving the file where the actual form was located in UTF8 format (important!) and also sent the header to the PHP mail function with the utf-8 charset like this:

$headers .= "Content-type: text/plain; charset=utf-8\r\n";



Marked as helpful by 1 user




0 comments:








© SolutionCottage 2008-2011 7/26/2017 1:42:10 AM