G Guest Jul 9, 2005 #1 I need to convert a String to a Byte array and vice versa. Can someone nudge me in the right direction please?
I need to convert a String to a Byte array and vice versa. Can someone nudge me in the right direction please?
B Bruce Wood Jul 9, 2005 #2 Look at the System.Text.Encoding classes, for example AsciiEncoding, UTF8Encoding, etc.
J Jon Skeet [C# MVP] Jul 9, 2005 #3 crater said: I need to convert a String to a Byte array and vice versa. Can someone nudge me in the right direction please? Click to expand... See http://www.pobox.com/~skeet/csharp/unicode.html Basically, you need Encoding.GetBytes and Encoding.GetString.
crater said: I need to convert a String to a Byte array and vice versa. Can someone nudge me in the right direction please? Click to expand... See http://www.pobox.com/~skeet/csharp/unicode.html Basically, you need Encoding.GetBytes and Encoding.GetString.