I have a form in PHP that submits data to MySQL.
Looking at the data in the database, I can see that around 2-3% of the rows contain international characters that are encoded incorrectly, e.g. "Guðrún" displays as "Guðrún".
But, another user might submit the same characters just a few minutes later, and in that case, the characters are encoded correctly
So it seems the encoding is dependent on the computer that is used or some other factor that I am unaware of.
In the head of the HTML, I have this:
<meta charset="ISO-8859-1">
The form has this:
<form autocomplete="on" method="post" action="index.php" id="form1" accept-charset="ISO-8859-1">
The MySQL columns are set to latin1_swedish_ci.
Is there something else I should be doing to make this work for everybody?
Edit: since it was marked as duplicate I can't find an answer to this question anywhere else. I've read through lots of info on character encoding, which led me to having the setup I currently have, but that doesn't explain why 2-3% of the data is behaving differently from the rest.