[Expand] the number of bytes English letters and Chinese characters in different character set encoding

Chinese characters and English letters in a different character set encoding bytes
letters:
· bytes: 1; encoding: GB2312

Bytes: 1; encoding: GBK

Bytes: 1; encoding: GB18030

Bytes: 1; encoding: ISO-8859-1

Bytes: 1; encoding: UTF-8

Bytes: 4; encoding: UTF-16

The number of bytes: 2; encoded: UTF-16BE

The number of bytes: 2; encoded: UTF-16LE

Chinese characters:
the number of bytes: 2; encoded: GB2312

The number of bytes: 2; encoded: GBK

The number of bytes: 2; encoded: GB18030

Bytes: 1; encoding: ISO-8859-1

Bytes: 3; encoding: UTF-8

Bytes: 4; encoding: UTF-16

The number of bytes: 2; encoded: UTF-16BE

The number of bytes: 2; encoded: UTF-16LE

Guess you like

Origin www.cnblogs.com/yanglanlan/p/11280683.html