in reply to how to escape ' character

Try "\47".