1024programmer PHP In php, js verifies registration conditions, and issues related to Chinese garbled characters when displaying prompt information

In php, js verifies registration conditions, and issues related to Chinese garbled characters when displaying prompt information

In php, js verifies registration conditions, and the problem of Chinese garbled characters when displaying prompt information
js files are written separately. Simple information is filled in when verifying login, such as the length of the registration name must be greater than 6 digits, whether the email format is correct, etc. But when the prompt information displayed in the div layer is garbled, how to solve it? Picture attached. . I hope you can give me some advice. . Thanks. . .

——Solution——————–
Can’t see the picture. As long as the coding is unified, there will basically be no problem.

——Solution——————–
You change the encoding of all files including js files to utf-8
editplus is to set the page encoding, dw is the page attribute
Add in the display page

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/in-php-js-verifies-registration-conditions-and-issues-related-to-chinese-garbled-characters-when-displaying-prompt-information/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索