WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WP contact form and special characters (2 posts)

  1. malthe
    Member
    Posted 4 years ago #

    Hi.
    I'm having a bit of trouble with the wp contact form plugin.
    It mails out just fine, and everything works, but when you use the danish special characters æ, ø and å it returns codes for them instead of the actual characters in the e-mail message the person contacting you has written.
    WP it self shows the characters just fine, so I'm a bit confused. Is it php?
    I checked the plugin's source, and the headers just get the charset from the blog option charset, which is set to UTF8.
    Getting character codes in the middle is kind of annoying when you read the mail with a speech synthesizer, so it'd really be great if there is a fix I can apply.
    Does anyone know what the problem could be?
    Here's the code doing the charset header if I read it right (I think I'm formatting it ok for the forum, but if not I'm sorry, not sure what a backtick is.):

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

    Malthe.

  2. malthe
    Member
    Posted 4 years ago #

    I switched to a different plugin (contact form 7), and now it works, so I guess this is resolved. Sorry for the false alarm.
    Malthe.

Topic Closed

This topic has been closed to new replies.

About this Topic