val encodelist =arrayOf("GB2312",
"ISO-8859-1",
"UTF-8",
"GBK",
"Big5",
"UTF-16LE",
"Shift_JIS",
"EUC-JP")
在java中可以使用String.toByteArray但是在kotlin里面需要String.toByteArray(charset(encodelist[i]) )
val encodelist =arrayOf("GB2312",
"ISO-8859-1",
"UTF-8",
"GBK",
"Big5",
"UTF-16LE",
"Shift_JIS",
"EUC-JP")
在java中可以使用String.toByteArray但是在kotlin里面需要String.toByteArray(charset(encodelist[i]) )