Stephany Young <noone@localhost> wrote:[color=blue]
> ASCII is limited to 7 bits being bytes vales 0 to 127 inclusive.[/color]
Yes.
[color=blue]
> If none of your Unicode characters have a value greater than 255 then you
> can use ANSI or UTF8.
>
> If any of your Unicode characters have a value greater than 255 then you are
> stuck with using Unicode.[/color]
No, not really. For one thing, the various ANSI encodings don't just
map 0-255 to Unicode 0-255 - it's quite possible to have a string which
includes Unicode characters > 255 but which can still be correctly
encoded in a particular ANSI encoding.
Furthermore, UTF-8 can cope with *all* Unicode characters. Non-ASCII
characters are encoded to more than one byte, but they're still encoded
properly...
--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too