Japanese/double byte Values becomes question mark while using JCRUtils.readFile
Hi would like to ask how would I be able to retrieve Japanese (or other double byte characters) or symbols (like degrees) and save it to a csv as when I tried to use this one, they end up displaying as question marks.
I have here the code snippet that I'm using:
InputStream in = JcrUtils.readFile(reportNode);
InputStreamReader reader = new InputStreamReader(in);
CSVParser parser = CSVReportPrinter.parse(reader);
List<CSVRecord> records = parser.getRecords();
I also tried adding char encoding:
InputStreamReader reader = new InputStreamReader(in, "UTF-8");
but I still got the same question marks for those characters on the csv.
