fix charset bugs,and add set character in self_connect

修改字符集