Re: Unicode question...
- From: Per Hedbor <per idonex se>
- To: Derek Simkowiak <dereks kd-dev com>
- Cc: Robert Brady <robert susu org uk>, gtk-devel-list gnome org
- Subject: Re: Unicode question...
- Date: 09 Jul 2000 12:23:06 +0200
> 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]