title: ASP .NET Download File with Japanese File Name
body: <p>I am currently using Visual Studio 2008 for my ASP .NET application. I am trying to server an excel file via the Response object. The problem is I cannot seem to set the title of the file to Japanese. If I set it to Japanese file name, it gets returned as garbage character. I am using a Japanese IE browser in a Japanese WinXP.</p>
  
  <pre><code>Response.AppendHeader("Content-Type", "application/vnd.ms-excel");
  Response.AddHeader("Content-Disposition", String.Format("attachment; filename=\"{0}\"", "日本語.xls"));
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>Response.AddHeader("Content-Disposition", String.Format("attachment; filename=\"{0}\"", Server.HtmlEncode("日本語.xls")));
  </code></pre>
  
  <p>I already tried to change the encoding to Shift-JIS</p>
  
  <pre><code>Response.Charset = "Shift_JIS";
  </code></pre>
  
  <p>or</p>
  
  <pre><code>Response.Charset = "sjis";
  </code></pre>
  
  <p>Any ideas? Btw, I had the same problem with Visual Studio 2005 too.</p>