Data from MySQL CHARSET problems, please look the image!
If ISO-8859-1 then (HTML Text: GOOD, MySQL Data: BAD) if UTF-8 then (HTML Text: BAD, MySQL Data: GOOD开发者_开发技巧)
What can I do to solve it?
You need to get the encoding of your HTML page and that of the database data in sync.
UTF-8 is probably the best way to go. If you save your HTML page as UTF-8 (there should be a setting in your editor/IDE) things should work fine.
Make sure your page sends the correct content-type
as well.
精彩评论