add two functions to set utf-8 or gbk language environment