[HTML] added & lt; meta http-equiv = & quot; Content-Type & quot; content = & quot; text/html; charset = UTF-8 & quot; /& gt; the possible cause of garbled characters is charsetutf8.

Source: Internet
Author: User

[HTML] The reason why <meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/> is garbled is clearly added, charsetutf8

To put it bluntly, the right key creates a new text file, and changes the new text file .txt to "1.html ",

Then write in it:

<Html>  

There is no problem at all,

However, when the browser opens the 1.html file, it finds garbled characters, or when passing values in the form, you can add the

<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>

After all, this is the case on the Internet. In most cases, there is no problem. However, if you use notepad ++ to open this file, add this sentence to it.

If you find that the original webpage is still garbled, for example:


In this example, you can use the notepad to open this 1.html file and save it to the original directory to overwrite yourself. The encoding is changed from ANSI to UTF-8, and not from UTF-8 to unicode for win7x64 windows.


If you use a browser to open the file without garbled characters, close the notepad ++ tab and use notepad again.


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.