Hi everyone,

I'm a complete newbie at PHP, but at my place of employment we're having an issue with a form that has been created by one of our developers. It was originally created in English but we have changed the text to French, only to discover that the emails sent out to confirm the subscription after the form is filled out come in with "?" marks instead of the accented characters, and is also coming through as plain text.

Is there a generic way to specify this in a PHP document or does it vary depending on the type of coding you're doing? If so, what kind of coding do we need to put in to ensure it displays as HTML and not plain text, therefore showing at least the HTML specified characters? If needed I can provide the code in question.

Any help would be greatly appreciated, thank you!
Tash

    there are two levels at work here.

    1) you create the document with some program and do a 'save as html'.

    2) when a browser views your html, there is sometimes a character encoding tag like this:

    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    

    your post is a bit confusing. what do you mean we have 'changed the text to french?' are you talking about a form somebody is authoring in front page or dreamweaver or something?

      you can use charset:UTF-8
      I had a similar problem with greek characters and utf-8 fixed it, however in hotmail and some other free webmails that i checked the characters were not displayed. In email clients like outlook it was fine though.

        $headers .= "Content-type: text/plain; charset=UTF-8\r\n";
        $headers .= "Content-Transfer-Encoding: 7bit\r\n";

        use the above instead of

        Content-Type: text/plain; charset="ISO-8859-1"
        Content-Transfer-Encoding: quoted-printable

        and give it a whirl.

          Write a Reply...