Issue in writing special character € to ServletOutputStream/PrintWriter
posted 4 years ago
I am trying to write to a file with PrintWriter object in Java. I have to write "€" to the xls but it is getting written as garbage character in excel. I have created the PrintWriter object as response.setContentType("application/csv; charset=ISO-8859-15");
final PrintWriter out = response.getWriter();
And this is getting printed as "¤1.34" in the xls file.
Please help. Thanks in advance !!