I do not know how to generate the hexadecimal character "0x83" from an integer value in Java.
I need the value "0x83" to represent a letter in Cyrillic (this letter: ѓ ) in order to send it (letter) to my printer. When converting 131 (0x83 in decimal) to hex with my converter (below) I get three numbers: 0x31, 0x33 and 0x31.
public String toHex(String arg) { return String.format("%x", new BigInteger(arg.getBytes())); }
I need to get 0x83 from this conversion.
java int hex
Gogoo Mar 10 '11 at 10:33 2011-03-10 10:33
source share