How many bits would it take to store a document with 32,000 characters?

Home » Software » How many bits would it take to store a document with 32,000 characters?
Software No Comments

Other answer:

?:
If the text is restricted to the ASCII character set, whose character codes are all less than 128, then the number of bits equals 32000 × 7 = 224,000.

If an 8-bit character set like ISO/IEC 8859 is used, then the number of bits equals 32000 × 8 = 256,000.

If character codes beyond 255 are used, then some kind of encoding such as Unicode, UTF-8, or similar has been applied.  The exact bit count cannot be known without the complete text, and a reliable estimate is not possible without some sense of which unicode subranges are used, and to what degrees.

Leye Witness News:
74
Chris P:
Depends entirely on the character encoding being used:

Using 8-bit ASCII: 256,000 bits

chrisjbsc:
1 byte per character. 32k bytes. 8 bits in a byte. 256k.
Libraryanna:
There is no one answer, it depends on what you are using to code them.

LEAVE A COMMENT