Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: Forms Encoding

  1. #1
    Regular Coder
    Join Date
    Jul 2004
    Location
    Lebanon
    Posts
    223
    Thanks
    6
    Thanked 0 Times in 0 Posts

    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?

  • #2
    New Coder
    Join Date
    Oct 2008
    Location
    India, Banglore
    Posts
    50
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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

  • #3
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    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.

  • #4
    Regular Coder
    Join Date
    Jul 2004
    Location
    Lebanon
    Posts
    223
    Thanks
    6
    Thanked 0 Times in 0 Posts
    How do I make sure the email isn't plain text?

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    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
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #6
    Regular Coder
    Join Date
    Jul 2004
    Location
    Lebanon
    Posts
    223
    Thanks
    6
    Thanked 0 Times in 0 Posts
    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

  • #7
    New to the CF scene
    Join Date
    May 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 ...


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •