how many diferent characters does the utf-8 and ascii encoding has. if every character needs 2 bytes of memory how much memory we need to store all the characters of the utf-8 encoding?
Printable View
how many diferent characters does the utf-8 and ascii encoding has. if every character needs 2 bytes of memory how much memory we need to store all the characters of the utf-8 encoding?
I think it might be useful.
http://en.wikipedia.org/wiki/UTF-8
The ASCII subset of UTF-8 only needs one byte per character. There are 128 characters in that subset.
Number of bytes needed to encode 1 character in UTF-8 vary from 1 to 6. It depends on the characters.
http://www.codeguru.com/cpp/misc/mis...le.php/c10451/
The current Unicode character map doesn't specific any mappings large enough to require six bytes in UTF-8. I think the maximum is 4.