I am trying to create a CSV file from my Java code.
    File file = File.createTempFile("DummyReport", ".csv");
    SomeListofObjects items = getSomeList();
    FileUtils.write(file, "ID;CREATION;" + System.lineSeparator());
    FileUtils.writeLines(file, activities.getItems(), true);        
    return file;
I am facing some issue with special chars.
When I debug the code, I found that I have a character as "ö". But in the csv file generated, it is coming weirdly "ö".
Can we set this in FileUtile or File? Can some one help me to solve this?
 
     
     
    