#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    18
    Rep Power
    0

    Forms and diacritical marks in different languages (or special characters)


    Hello Folks,

    I am running Apache 2.2.22 and php 5.3.12 and I have a simple registration form that is used all over the world. When someone from a country like Spain uses the form their responses are jumbled because of the encoding...at least I think it is called 'encoding'...basically I would like a way to ensure that when someone in Spain or France enters a character with a diacritical mark, the form will send it the way it was entered, no matter what the character is.

    I thought if I added utf8 to the headers it would fix this but it doesn't...
    PHP Code:
    'Content-type: text/html; charset=UTF-8' "\r\n"
    Any assistance would be highly appreciated.

    Thank you,
    Jenny
  2. #2
  3. Jealous Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,303
    Rep Power
    9400
    Where are you reading the responses? That needs to be UTF-8 too.
    Are you putting these into a database? That needs to be UTF-8 too. And the connection to the database.
  4. #3
  5. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,316
    Rep Power
    7171
    There's an entry in the FAQ that contains more details.
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    18
    Rep Power
    0
    I am reading the response in Outlook...I will look into the settings there for my business email. Thank you!

    Originally Posted by requinix
    Where are you reading the responses? That needs to be UTF-8 too.
    Are you putting these into a database? That needs to be UTF-8 too. And the connection to the database.
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    18
    Rep Power
    0
    I appreciate the reference, I had actually already looked at this and used some of the suggestions but alas it didn't help however, I am now looking into the fact that the form is submitted to Outlook mail which might be causing the issue.
    I think the best thing to do here is to just store the answers in a database and just have an alert sent when someone registers, then I can control how the information is displayed much easier.
    Thank you!
    Jen
    Originally Posted by E-Oreo
    There's an entry in the FAQ that contains more details.

IMN logo majestic logo threadwatch logo seochat tools logo