I know there is a lot of similar question but I still cannot find a solution,
my code:
resp.setContentType("text/csv; charset=UTF-8");
resp.addHeader("Content-Disposition", "attachment; filename=file.csv");
resp.addHeader("Pragma", "no-cache");
resp.addHeader("Expires", "0");
resp.addHeader("Content-Encoding", "UTF-8");
resp.getWriter().write(sb.toString());
The result is opened as a gibrish text instead of hebrew in excell.
How should I change this text so the result CSV can be opened in Excell (without importing it to excell)?
i.e. what charset should I used, and what is the correct code to generate it?