I made a project where I write some stuff in a csv file, but special characters don't work correctly, for example characters such as : à, é, ï..
So I changed my code, so that the fileWriter would be encoded in ISO-8859-1.
OutputStreamWriter o = new OutputStreamWriter(new FileOutputStream(file), "ISO-8859-1");
writer = new CSVWriter(o, ';', CSVWriter.DEFAULT_QUOTE_CHARACTER,
CSVWriter.DEFAULT_ESCAPE_CHARACTER,
CSVWriter.DEFAULT_LINE_END);
Most of the characters work, but the characters '
, doesn't work correctly, it's shown as a ?
.
Perhaps, I need to change encoding, but CSV is supposed to use ISO-8859-1.
Do you have any suggestion?