Forums

WP-Contactform and encoding error (5 posts)

  1. browserdius
    Member
    Posted 4 years ago #

    Well, I just dont know what to do anymore.
    I've installed wp-contactform and everything goes fine until someone uses portuguese characters. For the user, eveything's ok but when I receive the form result in my mail it cames all strangely formated such as:
    Não is Não.
    Could someone help me in this one? I really need this characters to work. Most of my site visitors are portuguese...
    Note: The encoding that I've set in Options is UTF-8
    Thanks

  2. swordfish
    Member
    Posted 4 years ago #

    I encountered similar problem.

    You know what, you can test it yourself.

    I wrote a test mail to see if the installed plugin is working.

    I wrote this: I've been reading...
    And in my mail box I see I’ve been reading...

  3. browserdius
    Member
    Posted 4 years ago #

    Hey Swordfish. I've tryed just now with "I've been reading..." and it worked. But it does not work with Não. Could you try?

  4. alfdesignsk
    Member
    Posted 4 years ago #

    Hi,
    I had problem with slovak encoding, and UTF-8 charset.
    But I solve this problem with some commands in mysql.
    see blog.alfdesign.sk

  5. ryanduff
    Member
    Posted 4 years ago #

    This was fixed in changeset 3599. You can wait for 1.4 or change around line 148 in wp-contactform.php

    change

    $headers .= "Content-Type: text/plain; $encodingn"; // sets the mime type

    to

    $headers .= "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"n";

    which will correctly set the MIME headers so it will recognize it as UTF-8 or whatever you're using.

Topic Closed

This topic has been closed to new replies.

About this Topic