update char code