如何将十六进制字符串转换为普通字符串?

How can I convert from hexadecimal string to normal string?

我在 java 中通过套接字收到 HTTP GET 响应作为十六进制字符串数据。但我想将普通字符串转换为 HTML 格式的数据。我怎样才能做到?

byte[] bytes = Hex.decodeHex(YourhexString .toCharArray());
String s=new String(bytes, "UTF-8");