G
Guest
In C#, how would you loop through each character in a string and convert them
to their ascii values?
to their ascii values?
Morten Wennevik said:Use the Encoding class.
byte[] asciicharacters = Encoding.ASCII.GetBytes(unicodeString);
Michael A. Covington said:Doesn't System.Encoding get involved here?
The string might not be ASCII; it might be Unicode.