How to convert hex value to Special Char( in Unicode )?

后端 未结 4 1023
说谎
说谎 2020-12-22 14:30

In my previous question, I asked about conversion of Special Chars to Hex.

Hex value of "ㅂ" is "e38582"

4条回答
  •  春和景丽
    2020-12-22 15:05

    1. Convert the hex to byte array. Convert a string representation of a hex dump to a byte array using Java?

    2. Interpret the byte array with the correct encoding (based on your previous question, UTF-8):

      String output = new String(bytes, "UTF-8");
      

提交回复
热议问题