set encoding and locale
set encoding and locale