1. When importing Jquery code: other text in the web page is normal, but the Jquery code displays abnormally.
Solution: Open the Jquery code as text (.txt) or word, then save it as and change its encoding (usually to utf-8 or gb2312).
2. When you want to change the coding problem of the entire website in ASP.NET.
Modify < globalization requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN" fileEncoding="gb2312" //> encoding in the tag in the web.config file
3. When the HTML webpage encoding appears garbled.
Just modify the charset=utf-8 in and so on.
Note: Commonly used encoding types in web pages: utf-8, gb2312, gbk, etc.