This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes corrupt Japanese characters in excel Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "corrupt Japanese characters in excel" Watch "corrupt Japanese characters in excel" New topic
Author

corrupt Japanese characters in excel

Richard Bradford
Ranch Hand

Joined: Apr 20, 2004
Posts: 48
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

Joined: Apr 20, 2004
Posts: 48
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 ]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: corrupt Japanese characters in excel
 
Similar Threads
How to display Japenese Characters in Excel Sheet
Unicode usage
How to display Japanese characters in excel sheet?
How to display Japanese characters in excel sheet?
Excel encoding / charset to read multibyte characters from java