Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

corrupt Japanese characters in excel  RSS feed

 
Richard Bradford
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am having a strange problem when display Japanese characters in excel.
I am setting the ContentType using setContentType("application/vnd-ms.excel; charset=Shift_JIS");
It seems that If I display only a few words then excel does not display the characters correctly, but If I display about 15 or over words then the characters are displayed fine.
Anyone have any idea why this is happening?
Thanks.
Richie
 
Richard Bradford
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In case anyone is interested, the fix was to set both the contentType AND include <meta http-equiv="Content-Type" content="application/vnd.ms.excel; charset=Shift_JIS"> in the html output.
[ May 10, 2004: Message edited by: Richard Bradford ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!