Decode hex string in java -


As I am trying to convert the Java string down from hex. As this UTF is 8 characters.

ЫЙБПАРО As this string is converted to hexadecimal 42b41941141f41042041e value.

I tried to change the string using the javascript code to hex

  function encode (string) {var str = ""; Var length = string. Long; {Str + = string.charCodeAt (i) .toString (16) for (Var i = 0; i & lt; length; i ++); } Return str;           / P > 

You can try.

  byte [] b = hex.decodehex (yourhexdecimalstring.toCharArray ()); System.out.println (new string (b, "utf 8"));  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -