I have a mail form in flash that sends mails using a PHP file. The mails are to be in Norwegian, which means that there are three funny letters that need "special" encoding.
Unfortunately, using the form to send mails to Hotmail and several other places will have the mail turn up with yen-signs and what not in stead of the Æ, Å or Ø.
In other words, I need to have the PHP script change the encoding of the text it receives from the flash document (which is UTF-8) to ISO-8895-1 or whatever will work.
Or maybe there's some way to define encoding in the mail() function that makes sure the receiving mail program "gets it" and displays stuff correctly. I don't know.
My PHP now:
illustration and webdesign
Unfortunately, using the form to send mails to Hotmail and several other places will have the mail turn up with yen-signs and what not in stead of the Æ, Å or Ø.
In other words, I need to have the PHP script change the encoding of the text it receives from the flash document (which is UTF-8) to ISO-8895-1 or whatever will work.
Or maybe there's some way to define encoding in the mail() function that makes sure the receiving mail program "gets it" and displays stuff correctly. I don't know.
My PHP now:
Code:
<?php
declare(encoding = 'ISO8895-1');
mail($toAd, $sub, $mesg, "From: $nam\nReply-To: $from\nX-Mailer: PHP/" . phpversion());
?>
illustration and webdesign