I am trying to decode some hex values to their actual names, but i am having issue.
21043D0438043C043E043A04 should be decoded to СНИМОК. Current code I am using
String test = "21043D0438043C043E043A04";
byte[] bytes = Hex.decodeHex(test.toCharArray());
String a = new String(bytes, "UTF-8");
but i am getting some pretty weird results.
Tried also getting it as utf8 bytes but did not work.
byte[] bytesone = test.getBytes(Charset.forName("UTF-8"));
String b = new String(bytesone, Charset.forName("UTF-8"));
byte[] bytes = Hex.decodeHex(b.toCharArray());
String a = new String(bytes, "UTF-8");
Thanks in advance
Hex?