Why does it prompt garbled characters when using phpstorm to submit this webpage to Google Chrome?
problem solved
Inconsistent utf8 will lead to garbled characters (the browser also needs to set utf8 accordingly during the saving process of html)
Garbled characters are usually encoding problems
1. File encoding, see if it is a utf8 file, and whether there is a bom header
2.html encoding
3.database Encoding
Usually these three situations lead to garbled codes. You can debug them separately. If you don’t understand, you can ask me again
Encoding must be set in the web page code.
problem solved
Inconsistent utf8 will lead to garbled characters (the browser also needs to set utf8 accordingly during the saving process of html)
Garbled characters are usually encoding problems
1. File encoding, see if it is a utf8 file, and whether there is a bom header
2.html encoding
3.database Encoding
Usually these three situations lead to garbled codes. You can debug them separately. If you don’t understand, you can ask me again
Encoding must be set in the web page code.