Page text display is normal, the dialog box garbled! Harry What to do with it

Source: Internet
Author: User
Page text display is normal, the dialog box garbled! Harry
This question does not know to ask in this right not suitable!
Just learned PHP, before being page, connection database, database coding head big, problem solved!
But today we find another problem:
Page text display is normal, why the dialog box in the popup text has become garbled!
Where is this code set? How to solve Ah!
There are graphs:

------Solution--------------------
Your page is GBK, but the data for the dialog box is Utf-8

------Solution--------------------
You are not invoking a JS file that pops up this box.
You just change the code of the JS file you call to Utf-8 encoded.
can be converted into utf-8 with notepad++

Be sure that your JS file is a UTF-8 encoded file
------Solution--------------------
The PHP file you post to is GBK
------Solution--------------------
Go inside the file editor.
What editor do you use?
Each editor has a different conversion to the file

In the case of NPP, format-to Utf-8 no BOM


------Solution--------------------
I suggest you use notepad++ this software, format-to Utf-8 without BOM, with Dreamweaver not.
------Solution--------------------
If I knew you, I would have you remotely. First back up this PHP, then put this page to the desktop, with Notepad open, Notepad, the upper left corner of a file, click Save As, a box appears, after the box has a code selected ANSI, then save, open the page to try, if it is garbled, put the page header (" Content-type:text/html;charset=utf-8 ");
Remove it and change it back to UTF-8 in Notepad.
------Solution--------------------
If not so, 936466648, I QQ, I remote under you
  • 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.