mysql+php do Web font problems
Apachectl+mysql+php is built under the CentOS ...
Now there is a message board:
Found Chinese characters phone input, display is no problem, but the page characters garbled.
New solution ...
------Solution--------------------
Coding with UTF-8
------Solution--------------------
Both the database and the Web page are set utf-8 there should be no problem.
------Solution--------------------
There's more than one place.
HTML file inside
Do you encode the file itself as ANSI or UTF8?
And what data is encoded in the database?
are going to be unified.
------Solution--------------------
Add this to the top of the page and try to change it to gb2312.
------Solution--------------------
Confirm these things.
First, the page encoding is set to Chinese encoding, UTF8 or gb2312, etc.
Next, is the encoding of the saved file
Finally, if the data is read from the database, set the database encoding