Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Turkish characters  RSS feed

 
Monika Sach
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am generating a report by picking user profiles from the OID. The OID contains special turkish characters. When I write them on the browser the characters seem fine.
But I need to export them to excel in the application. When I do so these characters get screwed up.
I have seen a related post where it was suggested to use HTML instead of ms-excel.
I need to write them to an excel. Is it possible? If yes, how?

I have tried all stuff like:
request.setCharacterEncoding("UTF-8");
response.setContentType("application/vnd.ms-excel";"charset=UTF-8");
response.setHeader(Defs.CONTENT_DISPOSITION, Defs.ATTACHMENT + "=\"Report.xls\"");
// Get an instance of the Writer.
out = response.getWriter();

Thanks
M
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!