Coding knowledge Summary
The earliest encoding is ASCII, which is only 1-127, expressed in one byte. And the first bit of this byte is 0.Later, many countries found that ASCII characters are too few. For example, Chinese characters cannot
Original address:http://www.cnblogs.com/kingcat/archive/2012/10/16/2726334.html Why Unicode is requiredWe know that the computer is actually very stupid, it only know 0101 such a string, of course, we look at such a 01 string when it will be more
In programming, these three character encoding formats are often converted to each other, so that many third-party libraries fail to call for unknown reasons, in fact, many are because third-party libraries support UTF-8 rather than Windows Default
Document directory
ASCII
GB2312
GBK
UTF Encoding
Setlocale
Miserable programmer
ASCII
Table language English and Western European language.
ASCII is represented by 7 characters, which can represent 128 characters. Its Extension uses 8
html5 title HTML5 's content! HelloI wrote it in notepad, after the save on the Web page ran unexpectedly garbled. Replace with GB2312 to display Chinese correctly.html5 title HTML5 's content! HelloBut after all, the standards are Different. Still
UTF-8 contains the characters that all countries in the world need to use, is international code, strong universality. UTF-8 encoded text can be displayed on browsers that support UTF8 character sets in countries. For example, if the UTF8 code, the
DOCTYPE HTML>HTML>Head>MetaCharSet= "UTF-8">title>HTML5 's titletitle>Head>Body>P>HTML5 's content! HelloP>Body>HTML>I wrote it in Notepad, after the save on the Web page ran unexpectedly garbled. Replace with GB2312 to display Chinese
Unicode, GBK, UTF-8 differences in simple terms, Unicode, GBK and Big Five code is the encoded value, and UTF-8, uft-16 and so on is the representation of this value. the preceding three types of codes are compatible. The values of the three codes
Http://www.cnblogs.com/cy163/archive/2007/05/31/766886.htmlUnicode,gbk,utf-8 differencesIn simple terms, UNICODE,GBK and five yards are encoded values, and utf-8,uft-16 is the expression of this value. And the preceding three kinds of coding is a
http://blog.csdn.net/thl789/article/details/7506133Https://zhuanlan.zhihu.com/p/23654187?refer=dreawerHttp://www.ruanyifeng.com/blog/2007/10/ascii_unicode_and_utf-8.html
UTF-8UTF-8 (8-bit Unicode Transformation Format) is a variable-length
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.