private string ConvertFromHexadecimal(string hexadecimalText)
{
if (hexadecimalText.Length % 2 != 0)
{
throw new ArgumentException("输入的十六进制字符串长度必须为偶数");
}
byte[] bytes = new byte[hexadecimalText.Length / 2];
for (int i = 0; i < bytes.Length; i++)
{
bytes = Convert.ToByte(hexadecimalText.Substring(i * 2, 2), 16);
}
return Encoding.GetEncoding("GBK").GetString(bytes);
}
3b2f9dfb-44a4-413a-b96b-0382018d5d65.png (10.94 KB, 下载次数: 0)
chenboss 发表于 2024-11-13 17:18
你把十六进制原文发出来
chenboss 发表于 2024-11-13 17:18
你把十六进制原文发出来
19940321 发表于 2024-11-13 17:22
我转完后,哪些特殊字符或者控制符就变成?了,就是图中错误到处那样。
欢迎光临 精易论坛 (https://125.confly.eu.org/) | Powered by Discuz! X3.4 |