Home > Web Front-end > HTML Tutorial > What are the factors causing garbled web pages? _html/css_WEB-ITnose

What are the factors causing garbled web pages? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:17:21
Original
1286 people have browsed it

I searched, but I couldn’t find anything more “theoretical”, basically how to deal with it. My principle is to ask CSDN for things that cannot be obtained quickly.
From my experience, I feel that there are two main factors causing garbled pages: the encoding method used in the content of the web page file itself, "" The encoding method declared. In addition, I feel that it is also related to the default encoding method of the browser itself, but this seems to only work when there is no code mentioned above, and I have not studied it too carefully.
Is it possible to ensure that the page will not be garbled as long as that code corresponds to the encoding method used in the file itself?


Reply to the discussion (solution)

Let me know, heroes, I have encountered it too.

1. The encoding method for file saving. If you open it with software such as Notepad, you can see the encoding in which the current file is saved, and you can also modify it.
2. The encoding method entered on the page is what you entered at the beginning. The one defined by the ministry
3. Server support issues. Domestic servers should be fine. Mainly caused by many foreign servers that do not support Chinese encoding.
4. Encoding issues in browser settings
Try it. Just know the different encodings

encoding format, and don’t let Chinese characters appear in the CSS style sheet

When I encounter this, I’ll ask you with a practical example. Who can tell me about this situation?

Page encoding, acceptance encoding, etc. are all related...

One of the important reasons for garbled characters is the encoding format.

The reason for the garbled code is that the encoding format and decoding format are different...

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