497,064 views
6 votes
6 votes
If each of the characters was stored using 7-bit ascii, how big would the file have been in bits? what about if it was stored in 32-bit unicode?

User Kenmore
by
2.9k points

1 Answer

15 votes
15 votes

It depends what is the character and what encoding it is in: An ASCII character in 8-bit ASCII encoding is 8 bits (1 byte), though it can fit in 7 bits. An ISO-8895-1 character in ISO-8859-1 encoding is 8 bits (1 byte). A Unicode character in UTF-8 encoding is between 8 bits (1 byte) and 32 bits (4 bytes).

User Shay Shmeltzer
by
3.3k points