Data From Database Is Not Inserted Into My Webpage Properly
i have created a webpage in which data is being inserted in html document using javascript and ajax. I used to display the words like don't it's But when these words are inserted i
Solution 1:
The following articles will be useful
http://dev.mysql.com/doc/refman/5.0/en/charset-syntax.html
http://dev.mysql.com/doc/refman/5.0/en/charset-connection.html
After you connect to the database issue the following command:
SET NAMES 'utf8';
Ensure that your web page also uses the UTF-8 encoding:
PHP also offers several function that will be useful for conversions:
Post a Comment for "Data From Database Is Not Inserted Into My Webpage Properly"