php - How to handle non-English characters extracting from MySQL database? -
I'm going to extract text from a MySQL database table, collation is set to utf8_general_ci in PHPMyAdmin, I have the characters correctly I can see:
"I have a very useful option at the same time:"
But when I remove myself, it prints like this: / P>
"I can be used in a very good way for the consumer IWrap per I:"
How do I print the letters correctly I can? Thanks!
- Is your script utf8-encoded?
- Does the browser display it as UT8?
- Is the charset of your MySQL connection set to utf8?
- Is phpmyadmin's connection to the charset set to utf8?
You can check first in your editor.
You can see the other in your browser (also check it receives the http header).
You can get a simple SET NAMES 'utf8'; You can set a mysql connection to use utf8 with
query.
Phpmyadmin's charset is displayed on its index page somewhere
Comments
Post a Comment