set encoding and JRe version