Hi,

I am using Struts2 Stream Result for Downloading To Excel, by constructing
the inputStream as required for Stream Result as :

inputStream = new
ByteArrayInputStream(getSomeStringData().getBytes("UTF-8"));

My action is configured in struts.xml as follows
<result name="sendFile" type="stream">
   application/csv
   UTF-8
   inputStream
attachment:filename="CasesDetails.csv"                                

                                1024
                        </result>

In my jsp page there is a button on click of which I am calling the Action
and I also put in this page the following:

<%...@page pageEncoding="UTF-8"%>
<%...@page contentType="text/html;charset=UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

The problem which I am facing is when the method getSomeStringData() is
returning Japanese or Chinese characters. In such scenarios the excel file
data is containing junk characters (?????) etc. 

Has anyone faced a similar problem or anyone has any solutions for fixing
this issue
-- 
View this message in context: 
http://www.nabble.com/Stream-Result-and-Japanese-data-getting-corrupted-tp22432726p22432726.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to