| |
 |
Sunday, January 12, 2003 |
This is just a quick note on the way to convert a string to a byte since there is no method available in System.Convert.
string s = "this is a test"; byte[] b = new byte[20]; b = System.Text.Encoding.UTF8.GetBytes(s); for (int i=0; i<b.Length;i++) { Console.WriteLine((char)b[i]); }
4:15:10 PM
|
|
© Copyright 2004 Mark Michaelis.
|
|