【发布时间】:2011-06-25 10:14:58
【问题描述】:
我有一个 CSV 文件(用德语编写),我正在我的代码中解析它。
CSVParser newLineParser = new CSVParser('\n');
try {
String[] points = newLineParser.parseLine(csv);
CSVParser commaParser = new CSVParser();
int pointsLength = points.length;
for (int i = 1; i < pointsLength; i++) {
String[] pointComponents = commaParser.parseLine(points[i]);
}
}
catch (Exception e) {
Log.e("Exception", e.getMessage());
}
我在 parseLine 方法中遇到错误:
java.io.IOException: Un-terminated quoted field at end of CSV line
这个错误的原因可能是什么?
【问题讨论】: