Home > Web Front-end > H5 Tutorial > HTML5 UTF-8 Chinese garbled solution_html5 tutorial skills

HTML5 UTF-8 Chinese garbled solution_html5 tutorial skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 15:48:38
Original
2813 people have browsed it


Copy code
The code is as follows:





HTML5 title


HTML5 content! Hello





Written in notepad, after saving it, garbled characters appeared when running on the web page, changing to GB2312 can correct it Show Chinese

There is no problem with the code, the problem is with Notepad. just tells the browser to use utf-8 for interpretation, and the encoding of the document is determined by the choice you make when saving. If you save ANSI and then interpret it with utf-8, it will definitely It's garbled code. In Notepad, the default file format saved is ANSI, so it needs to be changed to uif-8 when saving.

Related labels:
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
Latest Issues
html5 validation for symfony 2.1
From 1970-01-01 08:00:00
0
0
0
The difference between HTML and HTML5
From 1970-01-01 08:00:00
0
0
0
html5 show hide
From 1970-01-01 08:00:00
0
0
0
Can PDF files run HTML5 and Javascript?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template