Help

#201 Encoding problem in CSV exporting

The "Servlets.setCharacterEncoding" line in the next code from GenerateReportServlet is not valid for all cases:
}
else if (uri.endsWith(".csv")) {
Servlets.setCharacterEncoding(request, response); // THIS LINE DOES NOT WORK IN ALL CASES
response.setContentType("text/x-csv");
synchronized (tab) {
tab.setRequest(request);
response.getWriter().print(TableModels.toCSV(getTableModel(tab, selectedRows, request, true)));
}
}

Discussion

Given that it not possible to figure out the enconding of the client machine (the one used by Excel) we have added a new property to xava.properties calles csvEncoding to indicated the wished encoding for CSV files.