set encoding for code