Re: Have read the documentation, and am confused

From: Bonj (Bonj_at_discussions.microsoft.com)
Date: 12/08/04


Date: Wed, 8 Dec 2004 03:33:02 -0800

Tha'ts a good article, and clears up some of the myths.

"Mark Jerde" wrote:

> Victor Bazarov wrote:
> > Bonj wrote:
> >> I think I've figured it anyway - it says for the "count" argument
> >> "not including the terminating null". So this is ideally one less
> >> than the number of wide chars.
> >
> > Just to let you know, wide chars are really larger than regular
> > chars, and bytes are exactly the same size as chars. For example,
> > you can store only 6 wide chars in 15 bytes since you have to have a
> > totally zeroed wide char to indicate the end of the sequence, and so
> > one byte will be wasted.
> >
> > That's, unfortunately, the extent of my understanding of wide chars,
> > and I am not even sure it's correct.
>
> See if this article helps. ;-)
>
> http://www.joelonsoftware.com/articles/Unicode.html
>
> -- Mark
>
>
>