我有一個CSV文件(用德語編寫),我在我的代碼中解析它。java.io.IOException: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
什麼可能是這個錯誤的原因是什麼?