Garbled question webpage - why garbled?

In the preparation of the page is the most common problem is the garbage problem. Today to explain. Common encoding ASCII, ISO-8859-1, GBK, GB2312, UTF-8, ANSI.

This is common in notepad some coding. ASCII code is an American invention that is 2 ^ 7 128 means that can store 128 characters, ISO-8859-1 is a European invention for 2 ^ 8 is 256, GBK and GB2312 Chinese people invention, ANSI is a self-decoding, meaning the Chinese system is to GB2312 coding, the United States system is ASCII, the European system is ISO-8859-1, ANSI will automatically identify, so we GB2312 browser's default is to decode, if you encoding is utf-8 will be garbled. So when you write a statement to the head of the page <meta charset = "utf-8"> so the browser to utf-8 will give you decoded. This will not be garbled problem. Add that: utf-8 Unicode means that all countries of the character sets are included. Used globally.

Guess you like

Origin www.cnblogs.com/yanzhuang/p/12195329.html