update Character codes