get charCode example