WP contact form and special characters
-
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.
- The topic ‘WP contact form and special characters’ is closed to new replies.