Advertisement

UNICODE???

Started by August 12, 2000 09:44 AM
2 comments, last by Zygo_#2000 24 years, 5 months ago
Can someone tell me what the definition UNICODE is? I see it everywhere in the windows headers and i dont have a clue what it is. Thanks
Its an extended character set. MUCH LARGER than ASCII

-Chris Bennett ("Insanity" of Dwarfsoft)

Check our site:
http://www.crosswinds.net/~dwarfsoft/
Check out our NPC AI Mailing List :
http://www.egroups.com/group/NPCAI/
made due to popular demand here at GDNet :)
Advertisement
It''s a character set that is two bytes per character (at least in Windows), and contains slots for most of the characters in the world.

The "regular" character set that you''re probably used to is called ASCII and can handle English and most western european languages but can''t do (say) Arabic or Japanese. A Unicode string on the other hand can contain English characters, or Arabic characters, or both, and the app doesn''t have to do anything special to store or do simple processing of those strings.

-Mike
Unicode strings are twice the size of ASCII ones. And I don''t often want to write in Russian, Greek, Arabic, Chinese languages or Japanese, so I don''t need it.
"Ascii is smaller than unicode" takes up 30 bytes including the NUL character.
"Ascii is smaller than unicode"w takes up 30 words or 60 bytes.
The w isn''t a typo, it just says the string is unicode.

------------------------------
#pragma twice

This topic is closed to new replies.

Advertisement