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

HTML5 UTF-8 Chinese garbled solution_html5 tutorial skills

WBOY
WBOYOriginal
2016-05-16 15:48:382695browse


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.

Statement:
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