Dear all,
How are you, as I am new to C#.NET I have a problem with file download using C#.NET 1.1. I am trying to download Japanese File name. Below is my code: string
fileName=System. Web.HttpUtility. UrlEncode( att.filename, System.Text. Encoding. GetEncoding( "utf-8")) ; Response.ContentTyp e = "application/ octet-stream" ;
Response.BinaryWrit e(att.data) ;
Response.End( );
I am using UrlEncode to encode the file name, but I think if I can send file name using Shift_JIS encoding to browser IE it may work fine.
Somehow using C#.NET 1.1 System.Web.HttpResp onse class can't send correct file name to IE using Shift_JIS encoding.
It works fine to FireFox while sending file name in UTF8 Encoding.
It works fine to other browser while sending file name using MIME Encoding (Base64 Encoding).
Help me out of this problem.
Thanks in advance