In php, js verifies the registration conditions and displays Chinese garbled characters when prompted.

Source: Internet
Author: User
In php, js verifies the registration conditions and displays Chinese garbled characters when prompted. js files are written separately. simple information filled in during login verification. for example, the registration name length must be greater than 6 characters, the mailbox format is correct, but the prompt information displayed on the div layer is garbled. how can this problem be solved? Figure .. I hope you will give me more advice .. Thank you... you cannot see the graph. You need to implement unified encoding. in php, the registration conditions are verified by js, and Chinese garbled characters are displayed when information is prompted.
Js files are written separately, and simple information is entered during login verification. for example, the length of the registration name must be greater than 6 characters, and the email format is correct, but the prompt information in the div layer is garbled. how can this problem be solved? Figure .. I hope you will give me more advice .. Thank you...

------ Solution --------------------
You cannot see the image. It's okay if you want to unify the codes.
------ Solution --------------------
You have changed the encoding of all files including js files to UTF-8.
Editplus is the page encoding, and dw is the page attribute.
Add

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.