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