Google Answers Logo
View Question
 
Q: Windows implementation of UTF-8 vs UCS-16 ( No Answer,   2 Comments )
Question  
Subject: Windows implementation of UTF-8 vs UCS-16
Category: Computers > Programming
Asked by: cbsemail-ga
List Price: $15.00
Posted: 18 Apr 2006 01:14 PDT
Expires: 01 May 2006 10:32 PDT
Question ID: 720090
When I compile my program as a native Unicode application, I believe
it stores all strings using double-byte characters.  Double-byte
implies 2 bytes.  UTF-8 supports byte sequences up to 6 bytes.  How
does Windows support this if they require only 2.  This would mean
that there are only 65,536 character possibilities... I thought some
languages had more than that.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Windows implementation of UTF-8 vs UCS-16
From: frde-ga on 18 Apr 2006 06:09 PDT
 
Think Hexadecimal

One byte becomes two

Two bytes become four

You need to know whether the next byte is a new character if you have
packed things.

Even after examining an old Chinese typewriter, I doubt that there are
65,536 ideograms - and I doubt that there are more than 32,766
character sets
Subject: Re: Windows implementation of UTF-8 vs UCS-16
From: jiangsheng-ga on 18 Apr 2006 12:48 PDT
 
The question of how many characters there are is still the subject of
debate. In the 18th century, European scholars claimed the total tally
to be about 80,000. This number, however, is thought to be exaggerated
as the character count varies by dictionary and its comprehensiveness.
For example, the Kangxi Dictionary lists about 40,000 characters,
while the modern Zhonghua Zihai lists in excess of 80,000 (the most
comprehensive Japanese kanji dictionary Daikanwa Jiten lists 50,000
entries). One reason for the overwhelming number of characters is due
to the existence of rarely-occurring variant and obscure characters
(many of which are unused, even in Classical Chinese). Note, however,
that no two characters are ever contextually identical.

From Wikipedia, the free encyclopedia

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy