0 replies on 1 page.
Char to Zero Padded Hex
Integer.toHexString(0x100 | (int) '\f').substring(1).toUpperCase(); // '\f' is '0C' in hex
Read: Char to Zero Padded Hex