Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-12-2009, 09:04 AM   PM User | #1
Snitz
Regular Coder

 
Join Date: Jul 2004
Location: Lebanon
Posts: 223
Thanks: 6
Thanked 0 Times in 0 Posts
Snitz is an unknown quantity at this point
Exclamation Forms Encoding

Hello there,

I'm using the WP-Contact-Form on my wordpress blog and I'm having some encoding problems. My site is built using 2 languages (french and arabic), whenever someone sends us a message using french special characters, the email arrives to my inbox all messed up with.

For example: "è" becomes "& egrave ;" (without the spaces)

How can I fix that?
Snitz is offline   Reply With Quote
Old 05-12-2009, 02:35 PM   PM User | #2
ksanjanadevi
New Coder

 
Join Date: Oct 2008
Location: India, Banglore
Posts: 50
Thanks: 1
Thanked 0 Times in 0 Posts
ksanjanadevi is an unknown quantity at this point
I think you should have french and arabic language pack installed in ur system or ur email supports them, when they are not identified by the browser then the quotes/codes are displayed as HTML Entities
ksanjanadevi is offline   Reply With Quote
Old 05-12-2009, 04:26 PM   PM User | #3
Apostropartheid
The Apostate


 
Apostropartheid's Avatar
 
Join Date: Oct 2007
Posts: 3,215
Thanks: 16
Thanked 265 Times in 263 Posts
Apostropartheid is on a distinguished road
This is likely the provider stripping out HTML entities. Usually, é will be è. Your email provider is probably changing this to è, which is giving you your problem. Make sure the email isn't in plain text; hopefully that will solve it.
__________________
Blog | Twitter
Useful links: W3C HTML Validator | W3C CSS Validator | HTML 5 Guide
CF: HTML & CSS Resources/Tutorials Thread | HTML & CSS Posting Rules and Guidelines
Remember: no link, no code, no help!
Apostropartheid is offline   Reply With Quote
Old 05-13-2009, 07:26 AM   PM User | #4
Snitz
Regular Coder

 
Join Date: Jul 2004
Location: Lebanon
Posts: 223
Thanks: 6
Thanked 0 Times in 0 Posts
Snitz is an unknown quantity at this point
How do I make sure the email isn't plain text?
Snitz is offline   Reply With Quote
Old 05-13-2009, 08:52 AM   PM User | #5
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,689
Thanks: 158
Thanked 2,184 Times in 2,171 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Quote:
Originally Posted by Snitz View Post
How do I make sure the email isn't plain text?
Check the examples at http://php.net/mail
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 05-13-2009, 10:35 AM   PM User | #6
Snitz
Regular Coder

 
Join Date: Jul 2004
Location: Lebanon
Posts: 223
Thanks: 6
Thanked 0 Times in 0 Posts
Snitz is an unknown quantity at this point
Well, I have set the content-type of the form to text/html after it was text/plain
And inside my blog I have set the encoding to UTF-8
but still whenever I send an email in french charsl; méssage becomes mA©ssage
Snitz is offline   Reply With Quote
Old 05-25-2010, 09:11 AM   PM User | #7
Thos0000
New to the CF scene

 
Join Date: May 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Thos0000 is an unknown quantity at this point
Hi

Did you find any solution to this problem ?

I'm having the same and changing text/plain to text/html doesn't work better ...
Thos0000 is offline   Reply With Quote
Reply

Bookmarks

Tags
chars, encoding, enctype, forms, french

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:07 PM.


Advertisement
Log in to turn off these ads.