Convert ASCII codes to hex and character values