string s = "38 39 38 36 30 30 45 32 32 36 31 36 37 31 38 30 39 37 32 36".Replace(" ", "");
byte[] buff = new byte[s.Length / 2];
int index = 0;
for (int i = 0; i < s.Length; i += 2)
{
buff[index] = Convert.ToByte(s.Substring(i, 2), 16);
++index;
}
string result = Encoding.Default.GetString(buff);
Console.Write(result);
Console.ReadKey();
十六进制转ASCII
最新推荐文章于 2024-09-14 20:10:38 发布