This week's book giveaway is in the Security forum.
We're giving away four copies of Penetration Testing Basics and have Ric Messier on-line!
See this thread for details.
Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue in writing special character € to ServletOutputStream/PrintWriter

Pradeep Kukreti
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();
And this is getting printed as "¤1.34" in the xls file.
Please help. Thanks in advance !!

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic