• Post Reply Bookmark Topic Watch Topic
  • New Topic

Issue in writing special character € to ServletOutputStream/PrintWriter  RSS feed

 
Pradeep Kukreti
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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();
out.print("€1.34");
And this is getting printed as "¤1.34" in the xls file.
Please help. Thanks in advance !!


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!