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.


share
improve this answer
follow
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
1
add a comment |
17
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

EDITED

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


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

RichardTheKiwiRichardTheKiwi
100k2424 gold badges187187 silver badges258258 bronze badges
5
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
Linked
4
Fastest means of converting uppercase to lowercase and lowercase come uppercase in Java
9
What is byte-offset worth in hadoop or in java?
2
How to transform byte<> to String without acquiring outofmemory error in Android?
0
Is a js text file's size the quantity of characters within it plus one as a rule?
associated
294
Is there an upside under caret character?
2288
how do I get a consistent byte depiction of strings in C# there is no manually point out an encoding?
716
how do I check out what character collection a MySQL database / table / column is?
615
MySQL Error #1071 - Specified vital was also long; max crucial length is 767 bytes
111
How plenty of bytes in a JavaScript string?
496
exactly how to convert whole MySQL database characterset and collation to UTF-8?
1202
Best means to convert string to bytes in Python 3?
82
What is the maximum variety of bytes for a UTF-8 encoded character?
2
How many Bits stand for ONE character and also How numerous Bits stand for One Byte in ASCII?
2
How numerous bits are there in a personality in a password?
warm Network concerns more hot questions
*

stack Overflow
products
firm
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.