Wednesday, January 26, 2011

How can I get non-english characters from ajax form to MySQL

Programmer Question

I have a form that submits data using the jQuery form plugin. From there it goes through some server side handling and finally stored in a MySQL db.



Upon submitting these characters ����� they become sent to the server as áâãäï' (before hitting the database). The same type of thing happens with Japanese characters, etc.



I have tried both UTF-8 and ISO-8859-1 for the form encoding, page encoding, php server side encoding and db encoding. Still no luck.



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails