- attached A-B-C-D-100K.csv
Bad format csv file in Learning
When in OpenMarkov GUI I go to "Tools", "Learning", and I try to open the csv file attached here, I get the error screen of the file png that I attached here, and in the OpenMarkov message window it appears the next stack of method calls:
java.io.IOException: Bad format csv file: Empty file.
at org.openmarkov.io.database.excel.CSVDataBaseIO.load (CSVDataBaseIO.java:111)
at org.openmarkov.learning.gui.LearningDialog.loadCaseFile (LearningDialog.java:1012)
Comments (4)
-
reporter -
-
assigned issue to
-
assigned issue to
-
reporter Manuel, Jorge has found out that there is some kind of problem related to the encoding of the file (he says the file seems to be in a format different from UTF-8). If you run in Linux the next command (with the csv file attached here):
file -i A-B-C-D-100K.csv
You should see something like:
A-B-C-D-100K.csv: text/csv; charset=iso-8859-1
(Please, remember that Javier is using Microsoft Windows).
(I have now generated a csv database file from a Bayesian network in Linux, and the generated file appears with charset us-ascii).
-
- changed status to resolved
solved using a class whose writing can be parameterized to write in UTF-8
- Log in to comment