Morten Wennevik <Mo************@hotmail.com> wrote:
Use the Encoding class.
byte[] asciicharacters = Encoding.ASCII.GetBytes(unicodeString);
There's no need to in this case - all ASCII values are the same as in
Unicode, although of course there's much more of Unicode.
Just casting the character to an int will give you the Unicode value -
if it's in the ASCII range, the value will be the ASCII value.
--
Jon Skeet - <sk***@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