mysql+php do Web fonts related issues

Source: Internet
Author: User
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

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.