hi
i have some queries
1)i have a string(not hexadecimal ) and i want to convert it to a (string )hexadecimal
2) after that i want to store it in a byte[]-- have tried getByte()
for 1) i have tried
string hex = "7B"; // must be hexadecimal for it to work
int myInt = Convert.ToInt32(hex, 16);
Console.WriteLine("{0}",myInt);
for 2) i have tried ascii encoding, utf8 encoding, unicode encoding, however i dont understand the difference.
i have also researched on the convert class and the string.parse class.
can someone pls give me some advice.thanks in advance.