I'm generating a csv/xls file but when I use the postman to test the rest controller, I'm getting a lot of special chars but the file itself is being generated properly.
so, the file generated has literally 3 lines and 2 rows.
these are my HttpHeaders:
-headers.set(HttpHeaders.CONTENT_TYPE, "text/csv;charset=ISO-8859-1");
-headers.set(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=" + fileName);