problem with utf-8 email sending

Hello
I am trying to make a form that can send emails (for contact page). It send the messages in English fine, but French characters become jiberish.
Here is my code:

the form:

the confirmation page:

<? $to = "[email protected]"; $subject = "Feedback from site"; $headers = "From: [email protected]"."\r\n"."Content-Type: text/plain; charset=utf-8"."\r\n"; $body = Here is a feedback\n\: $NtsCmnts"; mail($to, $subject, $body, $headers); ?>

The same form works for English characters but not for French or other languages.

What am I doing wrong?
thanks in advance.
J

You will actually need to change the char set in the html and the php encoding.

ISO-8859-1 covers French characters, I believe.

Can you explain?
I did a lot of tests it turns out that if the result is emailed to a live.com account it shows as French characters, if they are emailed to another account which is being viewed in Windows Live 2011 it shows as gibberish.

Sponsor our Newsletter | Privacy Policy | Terms of Service