I have the following PHP in my contact form.
// Ensure a message was entered, then sanitize it
if(!empty($_POST['cf_m']) && $_POST['cf_m']!='Enter Your Message Here')
{
$message = strip_tags($_POST['cf_m']);
}
When I receive a message by email, the Norwegian characters, æ, ø, å become æ, ø, Ã¥.
What can I do in order to show the correct characters?
You must set the encoding in the mail header, like it’s explained in the php-comments on mail() (http://de.php.net/manual/de/function.mail.php):