nanogui: About UTF8->UTF16


Previous by date: 25 Apr 2006 22:59:22 +0100 Re: problem with running nano-X on framebuffe r, Greg Haerr
Next by date: 25 Apr 2006 22:59:22 +0100 re: Re: problem with running nano-X on fr amebuffe , "=?gb2312?B?zOzS7Q==?="
Previous in thread: 25 Apr 2006 22:59:22 +0100 About UTF8->UTF16, Joe
Next in thread:

Subject: Re: [nanogui] About UTF8->UTF16
From: "Greg Haerr" ####@####.####
Date: 25 Apr 2006 22:59:22 +0100
Message-Id: <117b01c668b3$49a62de0$0300a8c0@RDP>

: Try using
: GrText(w, gc, 0, y, buf, 24, MWTF_UTF8|MWTF_BASELINE) , It works!
: But in nano-X-docs.pdf, it says "count : the number of characters (not
bytes)
: in the string, do I miss something?

It appears our docs must be incorrect here.  I suspect the issue
is that for UC16, and ASCII, we want a character count, but for
UTF8, since it's variable-length encoded, we want a byte count.

I'll look into this and respond with more detail.

Regards,

Greg



Previous by date: 25 Apr 2006 22:59:22 +0100 Re: problem with running nano-X on framebuffe r, Greg Haerr
Next by date: 25 Apr 2006 22:59:22 +0100 re: Re: problem with running nano-X on fr amebuffe , "=?gb2312?B?zOzS7Q==?="
Previous in thread: 25 Apr 2006 22:59:22 +0100 About UTF8->UTF16, Joe
Next in thread:


Powered by ezmlm-browse 0.20.