News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Unicode

Started by Farabi, October 27, 2008, 05:25:07 AM

Previous topic - Next topic

Farabi

How much byte on unicode to represent a character? Can I use TextOut function to show a text?
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

Renfield

Unicode utilizes wide characters which are 16-bit.  The appropriate API for these would be TextOutW.

Vortex

Another function to display UNICODE strings is DrawTextW

BogdanOntanu

Unicode itself uses many sizes for encoding one character. It can be 16 bits or 32 bits or 8 bits but with a variable size encoding like in UTF8. However Windows has a tendency to use "wide chars" that are 16 bits per char.

The above functions are correct. In addition many other Windows API have functions that end in "W" and those can be used with "wide" Unicode strings as parameters.
Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro