1

I've developped a website using JSF, which is accessed by Safari mobile running on Iphone 5C.
Most of the Iphones behave correctly, send the text encoded as it should, but on one of them, text is badly encoded.
Exemple: "Début" is written "Début" (it's french)
I suspect one of the user changed the settings on the Iphone.
What setting could it be, and how can you change it back ?

EDIT: The website is rendered correctly, the problem arise when the user type text in a textbox and submit it to the server.

  • I have never heard of any way for users to change encodings in iOS (unless perhaps switching the system language might do that in some cases). – Tom Gewecke Apr 24 '15 at 12:38
  • Where exactly are you seeing the é? This is just correct UTF-8 é being read as if it were iso-8859-1 or Win 1252. – Tom Gewecke Apr 24 '15 at 14:22
  • I see it that way on the website after encoding, and also in the database with a client like Toad – madgangmixers Apr 24 '15 at 14:46
2

You could set the header to display UTF-8. The user might have his location settings set differently.

HTML:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

PHP:

header('Content-type: text/html; charset=utf-8');

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .