The relationship between bits, bytes, characters and Chinese characters

Source: Internet
Author: User

1 bit binary data 1 byte = 8 bit
1 letter = 1 byte = 8 bit
1 kanji = 2 byte = + bit


1. bit: Bits
One binary data 0 or 1, is 1bit;


2. byte: Byte
1 byte = 8 bit


3. An English character occupies one byte;
1 letter = 1 byte = 8 bit


4. a kanji account of 2 bytes;
1 Kanji = 2 byte = + bit

(This is not necessarily correct, depends on the encoding type)


5. punctuation
A>. The input state of Chinese characters, the default is full-width input mode;
B>. In the English input state, the default is the half-width input mode;

C>. In full-width input mode, punctuation is 2 bytes;
D>. In the half-angle input mode, punctuation marks account for 1 bytes;


Therefore: characters in the input state of the characters, accounting for 2 bytes (but do not exclude, they changed the default settings);
The characters in the English input state, accounting for 1 bytes (but do not exclude, they changed the default settings);


The relationship between bits, bytes, characters and Chinese characters

Related Article

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.