update code encoding