Cuerda HEX a Cuerda China
Tengo el siguiente código para convertir de HEX a ASCII.
<code>//Hexadecimal to ASCII Convertion private static string hex2ascii(string hexString) { MessageBox.Show(hexString); StringBuilder sb = new StringBuilder(); for (int i = 0; i <= hexString.Length - 2; i += 2) { sb.Append(Convert.ToString(Convert.ToChar(Int32.Parse(hexString.Substring(i, 2), System.Globalization.NumberStyles.HexNumber)))); } return sb.ToString(); } </code>
entrada hexString = D3FCC4A7B6FABBB7
retorno de salida = Óüħ¶ú »·
La salida que necesito es 狱 魔 耳环, pero estoy obteniendo Óüħ¶ú »· en su lugar. ¿Cómo puedo hacer que muestre la cadena correcta?