Custom Contact Forms
Charcter Encoding (6 posts)

  1. hotoil
    Posted 5 years ago #

    It's a wonderful plug-in, but I can not make it send in Unicode-8 character set.

    Please help


  2. Taylor Lovett
    Plugin Author

    Posted 5 years ago #

    Which version are you running? Version 4.0.4 converts all table charset to UTF-8

  3. hotoil
    Posted 5 years ago #

    Yes, it is Version 4.0.4

    When I send a message by the plug-in for testing I receive it in Western ISO-8859-1 Charset.

    Thank you for help.

  4. Ms_G
    Posted 5 years ago #

    I have the same problem.

    I'm using Version 4.0.6, but when I check the message's "raw source" they have the following code:

    Content-Type: text/html; charset = "iso-8859-1"
    Content-Transfer-Encoding: 8bit

    I have Spanish special characters and they are displayed like this:
    áéà óú¿¡üñ¿ú

    Can anyone please help?


  5. Ms_G
    Posted 5 years ago #

    I really want to use this amazing plugin so I'm trying to find a solution to my problem. I know that you can define in PHP the Character encoding with:

    header('Content-Type: text/html; charset=utf-8');

    Other contact forms plugins define the character encoding like this:

    $header .= 'Content-type: text/html; charset='. get_option('blog_charset') . $php_eol;


    $header .= 'Content-Type: text/html; charset=utf-8';

    However in the Custom Contact Forms plugin I can't find anywhere the character encoding. I know some PHP but this is beyond my knowledge.

    Can you please help me find where and how I can define the Character encoding?


  6. Ms_G
    Posted 5 years ago #

    I figured out :)

    This Plugin uses the default PHP mailer that comes with WordPress, so that's why I couldn't find the character encoding within the plugin's files.

    If you go to wp-includes/class.phpmailer.php on line 50 change

    var $CharSet = 'iso-8859-1';


    var $CharSet = 'utf-8';

    After doing this the emails will be encoded utf-8.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Contact Forms
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic