Problem with accents by the contact form

resolved (9 posts) (3 voices)

  1. yelo
    Member

    Hi,

    I have a small problem with the accents contents in a text sent by the contact form. For exemple if I write "Voilà le sitemap est validé" I receive by mail "Voilà le sitemap est validé".

    Can you help me, where can I change the codification of the sending message by the form to get the correct accentuation (in french in that case)

    Thanks in advance and have a nice day.

    Yelo

    Posted 1 year ago #
  2. Elliott
    Support

    Hello yelo,

    I don't know that much about character encoding but go ahead and send us a link to your page and let us know what encoding you have set in your header.

    Posted 1 year ago #
  3. yelo
    Member

    Hi again,
    The contact form is here : http://bit.ly/ehDa1y
    For the encoding I haven't touch your original header code.

    Thx in advance

    Yelo

    Posted 1 year ago #
  4. Elliott
    Support

    Looks like the header is fine. I sent you a test email with spanish accents. Let us know how you are reading your emails, what client you are using, etc etc.

    I'll go ahead and flag this for the rest of our team to take a look.

    Posted 1 year ago #
  5. Webtreats
    Support

    Hi yelo,

    Open up the following file on your server

    php/submit.php

    And replace line # 50

    $headers = 'From: My Site <'.$emailTo.'>' . "\r\n" . 'Reply-To: ' . $email;

    With:

    $headers = 'From: My Site <'.$emailTo.'>' . "\r\n" . 'Reply-To: ' . $email . "\r\n" . 'Content-Type: text/plain; charset=ISO-8859-1' . "\r\n";

    Let us know if this works.

    Posted 1 year ago #
  6. yelo
    Member

    Hi,

    Thanks for your answers; I just try it this morning but nothing new, there is still the same problem with the accents.

    @Eliott, we use Outlook client to read our mails.

    A idea, maybe stupid : Is this problem could append because in the head of the contact page (html) in line 2 there is lang="en-US"> ?

    Posted 1 year ago #
  7. yelo
    Member

    Hi again,

    I have trying lots of things I've view on several forum, I have change all html pages UTF8 in charset=ISO-8859-1 and still nothing; alaways the same accents problem.

    Is it possible that this problem comes from the server hosting ? (1&1 in my case) maybe there's something to put in the .htaccess or something like this ? I remember I has a problem last year to activate the PHP5 and I has to put AddType x-mapp-php5 .php in the .htaccess to activate it.

    Thx for you help

    Yelo

    Posted 1 year ago #
  8. Webtreats
    Support

    Hi yelo,

    It does sound like it's most likely a sever setting creating your accent issue.
    Using charset=ISO-8859-1 should work.

    I sent a test email from the demo of Awake and your accent characters did show up in Gmail, the demo for Awake is currently hosted on RackSpace.

    Unfortunately at this point I don't have any further suggestions.

    Posted 1 year ago #
  9. yelo
    Member

    Hi,

    I have found the answer to this problem and I come here to give it to all.

    In fact your first answer wasn't so far :

    in the page php/submit.php

    Replace the line # 50 :
    $headers = 'From: My Site <'.$emailTo.'>' . "\r\n" . 'Reply-To: ' . $email;
    with :
    $headers = 'From: My Site <'.$emailTo.'>' . "\r\n" . 'Reply-To: ' . $email . "\r\n" . 'Content-Type: text/plain; charset=UTF-8' . "\r\n";

    Tested and approved, it's work with french accents and I thinks with all others too.

    Yelo

    Posted 1 year ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme