1 手工转码
2 下面是一个例子BufferedReader buf = new BufferedReader(new InputStreamReader(new FileInputStream("e://test.xxx"), "UTF-8"));
String line = null;
int i = 0;
while ((line = buf.readLine()) != null) {
if (i == 0) {
line = line.substring(1);// 去掉文件头
i++;
}
String[] testString = line.split(",");
for (int j = 0; j < testString.length; j++) {
System.out.print(testString[j]+" ");
}
System.out.println();
}
buf.close();
2 下面是一个例子BufferedReader buf = new BufferedReader(new InputStreamReader(new FileInputStream("e://test.xxx"), "UTF-8"));
String line = null;
int i = 0;
while ((line = buf.readLine()) != null) {
if (i == 0) {
line = line.substring(1);// 去掉文件头
i++;
}
String[] testString = line.split(",");
for (int j = 0; j < testString.length; j++) {
System.out.print(testString[j]+" ");
}
System.out.println();
}
buf.close();
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货