Coding record

  Speaking to start encoding ASCII code, it is an American invention is applicable to encoding of their country; but using only the ASCII characters (8bit) to store, store no less powerful Chinese writing system, so our country to ASCII code expanded, eventually expanding into GBK Chinese characters to accommodate most of us; of course, other countries will also be extended to include ASCII own language, this will result in non-uniform coding and produce garbled in different countries to communicate; to to solve this problem of a unified coding Unicode, which contains the common language of many countries, so the volume is too large, Unicode character encoding is a fixed length of two characters to store, so for numbers in English and so will waste a lot of space, so that should be shipped born of UTF-8, UTF-8 is a variable-length encoding, UTF-8 using a stored English characters, a plurality of kanji characters, but this will cause inconvenient processing in memory, a large amount of additional calculating, UTF-8 can commonly stored in a file, when a file needs to enter the memory automatically from UTF-8 Further converted to Unicode convenience of calculation. When using the ANSI same notepad to store text respectively (current computer coding, Chinese Windows system is GBK) will be found and Unicode encoding Unicode encoding larger space.

Guess you like

Origin www.cnblogs.com/chiweiming/p/11407013.html