Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in displaying the double byte kana characters in csv

 
Micheal John
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am facing a problem with double byte values (Kanji, Kana Characters - Japenese). I have an application which fetches the double byte values from db and displaying it in jsp page. While dislpaying in the jsp, all the kana and kanji are displaying properly. I need to download the csv(excel) of whatever we displaying in the jsp. While opening the csv, I am getting the question marks(?) in the place of kana and kanji characters. I have tried with setting the content type to UTF-8.

response.setContentType("text/html;UTF-8");
response.setCharacterEncoding("SJIS");

But nothing is working. I am wondering how it's being displaying properly in the JSP page with only setting the content type as UTF-8 charset, but not in the excel. Whether I am missing anything? Please help to throw some light on it.


[ July 29, 2008: Message edited by: Micheal John ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked at the actual output from the JSP with a text editor (one that supports that character set)?

If not, it will be hard for you to determine whether the problem is on the JSP side or the Excel side.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic