Hello,
I am having a major issue with inserting french characters in my mySQL DB. The french charaters display perfectly fine on the client-side page. If I edit a field directly in the phpMySQL control panel, the french characters also displays correctly.
But if I insert or update fields from a form on a webpage (using PHP), it converst the special french characters into something not readable. For example, à becomes à Â.
I feel as if I've tried it all... any ideas?? here are the variables set on my server for phpMySQL:
*********************************************
character set client utf8
(Global value) latin1
character set connection utf8
(Global value) latin1
character set database latin1
character set filesystem binary
character set results utf8
(Global value) latin1
character set server latin1
character set system utf8
character sets dir /usr/share/mysql/charsets/
collation connection utf8_general_ci
(Global value) latin1_swedish_ci
collation database latin1_swedish_ci
collation server latin1_swedish_ci
********************************************
Any ideas or suggestions would be much appreciated!
Thanks,
Steph
I remember when I installed MySql there was a question which charset it should use, and I chose UTF8 for eveyrthing. I see some things are latin1 or else, I don't know can these support french characters. Maybe not?
I think those settings can be changed to UTF8 using the administration tool.
proudly presenting my personal website and game website: F1Simulation. a thrilling Managed DirectX racing game... also my Ask Me
look at my tutorials about cropping images and Mono: bundling Mono with programs and lambda expressions
I'm not sure about mySQL but you are going to want the equivelant to nvarchar datatype.
There is a brief, but informative thread on the MySQL site on just this occurance ...
MySQL :: Problem inserting german and french characters
Hope that helps.
Regards,
Phill.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks