add charset_code, support ucs2,utf8,gbk