It's challenging to tell what is gift asked here. This question is ambiguous, vague, incomplete, too many broad, or rhetorical and also cannot be reasonably answered in its existing form. For aid clarifying this inquiry so that it can be reopened, visit the aid center.


It counts what is the character and what encoding the is in:

An ASCII character in 8-bit ASCII encoding is 8 bits (1 byte), despite it deserve to fit in 7 bits.

You are watching: How many bits are in a character

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

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

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

A Unicode personality in UTF-32 encoding is constantly 32 bits (4 bytes).

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

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

That would typical that over there are in between 0.03125 and 0.125 personalities in a bit.

improve this answer
edited january 31 "11 in ~ 11:53
answered jan 31 "11 in ~ 11:25

Rosh OxymoronRosh Oxymoron
18.4k55 gold badges3737 silver badges4343 bronze badges
add a comment |
There are 8 bits in a byte (normally speaking in Windows).

However, if friend are dealing with characters, it will count on the charset/encoding. Unicode character have the right to be 2 or 4 bytes, for this reason that would be 16 or 32 bits, whereas Windows-1252 periodically incorrectly dubbed ANSI is only 1 bytes therefore 8 bits.

In asian version that Windows and some others, the whole system operation in double-byte, for this reason a personality is 16 bits.

See more: 5 Tips On How To Make A Blunt Burn Slower And Last Longer, How To Make A Joint Burn Slower


Per Matteo"s comment, all modern versions the Windows usage 16-bits internally every character.

boost this answer
edited jan 31 "11 in ~ 11:36
answered january 31 "11 at 11:19

100k2424 gold badges187187 silver badges258258 bronze badges
add a comment |

Not the prize you're feather for? Browse other questions tagged character-encoding byte or asking your very own question.

The Overflow Blog
Featured top top Meta
Visit chat
Fastest means of converting uppercase to lowercase and lowercase come uppercase in Java
What is byte-offset worth in hadoop or in java?
How to transform byte<> to String without acquiring outofmemory error in Android?
Is a js text file's size the quantity of characters within it plus one as a rule?
Is there an upside under caret character?
how do I get a consistent byte depiction of strings in C# there is no manually point out an encoding?
how do I check out what character collection a MySQL database / table / column is?
MySQL Error #1071 - Specified vital was also long; max crucial length is 767 bytes
How plenty of bytes in a JavaScript string?
exactly how to convert whole MySQL database characterset and collation to UTF-8?
Best means to convert string to bytes in Python 3?
What is the maximum variety of bytes for a UTF-8 encoded character?
How many Bits stand for ONE character and also How numerous Bits stand for One Byte in ASCII?
How numerous bits are there in a personality in a password?
warm Network concerns more hot questions

stack Overflow
stack Exchange Network
site design / logo © 2021 stack Exchange Inc; user contributions licensed under cc by-sa. Rev2021.10.7.40412

Stack Overflow works best with JavaScript allowed

her privacy

By click “Accept every cookies”, you agree stack Exchange deserve to store cookies on your maker and disclose info in accordance with our Cookie Policy.