size - Do certain characters take more bytes than others? -
I am not very experienced with lower level like how much a byte is a character, I tried to find out A character is equal to one byte, but without success
I have to set the delimiter used for a socket connection between a server and the client. To reduce the bandwidth, this delimiter should be as small as possible (in bytes).
The current delimiter is "#". Will another delimiter reduce my bandwidth?
It depends on the character encoding used to translate between characters and bytes ( Which are not all in the same thing):
- In ASCII or ISO 8859, each character represents one byte
- In UTF-32, each letter
- In UTF-8, each letter uses between 1 and 4 bytes
- In ISO 2022, it is much more complex
The US-ASCIIHole (the Hsik # one) will be only 1 byte in UTF-8, which is the most popular encoding which allows Maltibait characters.
Comments
Post a Comment