1. First set all the items in MyEclipse to be UTF-8
2. Set the Content-type
3. When writing an HTML document, you need to include an instruction to what character encoding the browser opens
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
A conscience person pointing to have 4 environment encoding Method 1: The encoding of the document itself, the general default is ANSI optional! There are 4 ways to save a notepad. 2: Page code in <meta> encoding, this is to tell the browser what kind of code 3: Browser encoding, you can choose 4: There is a background to the server's own environment code as long as the 4 items consistent! There is absolutely no coding problem. Generally I am all in UTF-8 encoded format.
MyEclipse build HTML5 HTML page will use HTML5 standard, the meta header directly with the name parameter name, and html1-4 are using HTTP-EQUIV to do the parameter name, Therefore, the browser that does not support the HTML5 standard can not read the charset=utf-8 and garbled = = = At present, I am the long-term version of Firefox will appear this kind of problem!
First of all, I wrote this HTML with the HTML5 standard, Chrome and IE11 all support HTML5 part of the standard, and the long-term version of Firefox does not support the HTML5 standard, so this causes the emergence of
MyEclipse garbled when writing HTML