Quantcast
Viewing all articles
Browse latest Browse all 3527

Download File with file name in Japanese Character get's Garbled

Hi,

I was asked to redirect this case to MSDN forum, issue is with IE I hope I have selected proper forum this time.

I am returning a Stream as data in an WCF REST API(GET) and I am making sure to set the required headers.

WebOperationContext.Current.OutgoingResponse.ContentType="application/force-download";WebOperationContext.Current.OutgoingResponse.Headers.Add("Content-disposition","attachment;filename="+Uri.EscapeDataString(fileName));

In case of file name having only english characters i am able to receive the data with proper file name.

When file name posses non english characters then only in IE the downloaded file name is of random characters. In chrome and Firefox able to receive proper file name.

How to take care of this problem?

Regards,

 Harish


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>