Home > Web Front-end > H5 Tutorial > body text

HTML5 UTF-8 Chinese garbled solution_html5 tutorial skills

WBOY
Release: 2016-05-16 15:48:38
Original
2727 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:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!