set encoding for compile