February 6th, 2013, 04:16 PM
Forms and diacritical marks in different languages (or special characters)
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...
Any assistance would be highly appreciated.
'Content-type: text/html; charset=UTF-8' . "\r\n";
February 6th, 2013, 04:33 PM
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.
February 6th, 2013, 08:42 PM
There's an entry in the FAQ that contains more details.
February 8th, 2013, 06:09 PM
I am reading the response in Outlook...I will look into the settings there for my business email. Thank you!
Originally Posted by requinix
February 8th, 2013, 06:12 PM
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.
Originally Posted by E-Oreo