Re: Unicode question...



>  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
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.

-- 
Per Hedbor                                   http://per.hedbor.org/





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