使用一下语句即可,字符串存在String origdata中
BufferedReader br = new BufferedReader(new InputStreamReader(new ByteArrayInputStream(origdata.getBytes(Charset.forName("utf8"))), Charset.forName("utf8")));
下面进行br.readline()即可
使用一下语句即可,字符串存在String origdata中
BufferedReader br = new BufferedReader(new InputStreamReader(new ByteArrayInputStream(origdata.getBytes(Charset.forName("utf8"))), Charset.forName("utf8")));
下面进行br.readline()即可