MyEclipse garbled when writing HTML

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.