Home > Web Front-end > JS Tutorial > Three solutions to the garbled code problem in Jquery web pages_jquery

Three solutions to the garbled code problem in Jquery web pages_jquery

WBOY
Release: 2016-05-16 17:30:51
Original
1725 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template