Re: Unicode question...



Per Hedbor wrote:
> 
> >  if (ucs4_character == 'T')  g_print("It's a big tee.");
> >  if (ucs4_character == 't')  g_print("It's a little tee.");
> >  if (ucs4_character == '\t')  g_print("It's a TAB character.");
> 
> The first 256 characters of unicode is the same as the first 255

<NITPICK> is it the first 256, or 255 (or is this sentence really
right)?
</NITPICK>

> characters of iso-8859-1, complete with the undefined regions, unless
> I am mistaken.
> 
> Thus, that kind of comparisons works just fine.
> 
> In UTF-8, the first 127 characters are the same, so the above
> comparisons will work just fine there too.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]