-
October 28th, 2009, 06:57 AM
#1
utf-8 and ascii characters and and memory in bytes.
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?
-
October 28th, 2009, 07:23 AM
#2
Re: utf-8 and ascii characters and and memory in bytes.
-
October 28th, 2009, 09:01 AM
#3
Re: utf-8 and ascii characters and and memory in bytes.
The ASCII subset of UTF-8 only needs one byte per character. There are 128 characters in that subset.
-
October 28th, 2009, 10:31 AM
#4
Re: utf-8 and ascii characters and and memory in bytes.
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/
-
October 28th, 2009, 10:40 AM
#5
Re: utf-8 and ascii characters and and memory in bytes.
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|