
9 Apr
2004
9 Apr
'04
6:36 a.m.
If you want it to work with UTF-8, you should avoid using any non-hexadecimal/octal-specified character or string literals for comparison, since there is no guarantee that the character or string literal, even if it is a wide literal, will be encoded in any particular encoding. (This is one of the annoyances of dealing with Unicode in C++ -- and justifies a language extension which would allow specifying UTF-8, UTF-16, and/or UTF-32-encoded string literals as well as UTF-32 character literals (single code points).) -- Jeremy Maitin-Shepard