一个字符中有多少位? [英] How many bits in a character?

查看:2452
本文介绍了一个字符中有多少位?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是困惑...一个位有多少字符?

I'm just confused...just how many characters in one bit?

推荐答案

以及它所处的编码:


  • 8位ASCII编码中的ASCII字符是8位

  • An ASCII character in 8-bit ASCII encoding is 8 bits (1 byte), though it can fit in 7 bits.

ISO-8859-1编码中的ISO-8895-1字符是8位(1字节)。

An ISO-8895-1 character in ISO-8859-1 encoding is 8 bits (1 byte).

UTF-8编码中的Unicode字符介于8位(1字节)和32位(4字节)之间。

A Unicode character in UTF-8 encoding is between 8 bits (1 byte) and 32 bits (4 bytes).

UTF-16编码中的Unicode字符介于16(2字节)和32位(4字节)之间,但大多数常见字符需要16位。这是Windows内部使用的编码。

A Unicode character in UTF-16 encoding is between 16 (2 bytes) and 32 bits (4 bytes), though most of the common characters take 16 bits. This is the encoding used by Windows internally.

UTF-32编码中的Unicode字符始终为32位(4字节)。

A Unicode character in UTF-32 encoding is always 32 bits (4 bytes).

UTF-8中的ASCII字符为8位(1字节),并且为UTF-16 - 16位。

An ASCII character in UTF-8 is 8 bits (1 byte), and in UTF-16 - 16 bits.

ISO-8895-1(0xA0-0xFF)中的附加(非ASCII)字符在UTF-8和UTF-16中将占用16位。

The additional (non-ASCII) characters in ISO-8895-1 (0xA0-0xFF) would take 16 bits in UTF-8 and UTF-16.



    这意味着有一点0.03125到0.125个字符。

That would mean that there are between 0.03125 and 0.125 characters in a bit.

这篇关于一个字符中有多少位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆