I've been Googling this for the past hour and can't seem to find a very simple solution to this prob.
I have a field in SQL - VARCHAR(255) with latin_swedish_ci coalition (the default). I get these odd chars when posting strings with apostrophes or accents.
Example. O'Brien is stored as O\'Brien
Siobhán is stored as SiobhÃn
Éire is stored as Ãire.
I've tried changing the coalition for the field but nothing seems to work.
Do I need to format the strings in PHP before inserting to SQL?
Thanks guys.
I have a field in SQL - VARCHAR(255) with latin_swedish_ci coalition (the default). I get these odd chars when posting strings with apostrophes or accents.
Example. O'Brien is stored as O\'Brien
Siobhán is stored as SiobhÃn
Éire is stored as Ãire.
I've tried changing the coalition for the field but nothing seems to work.
Do I need to format the strings in PHP before inserting to SQL?
Thanks guys.