File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Encoding Problem When export to excel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Encoding Problem When export to excel" Watch "Encoding Problem When export to excel" New topic

Encoding Problem When export to excel

Edgard Taok

Joined: Apr 18, 2006
Posts: 2

On websphere 5 (websphere 5) I have a wierd bug is the encoding of special characters when export to excel
I already have in my JSP file
response.setHeader("Content-Disposition","inline; filename=\"table.xls\"");
response.setContentType("application/; charset=UNICODE");

Anyone has an idea

Krithika Srinath
Ranch Hand

Joined: Apr 11, 2006
Posts: 52
Did you check your browser settings..? What is the character encoding set in your browser? May be the browser setting is not set to UTF.

Hope this helps.

I agree. Here's the link:
subject: Encoding Problem When export to excel