If the filename specified to ExportSettings.Filename contains japanese characters, the Save As... dialog will contain garbage characters for the filename. The issue is limited to IE. I believe the only way to fix this is an update from Telerik since the fix requires changing the code that sets the filename in the header...
The filename when appended as a header needs to be encoded with HttpUtility.UrlEncode. Something like this...
If someone from Telerik could confirm that this is an actual bug and that there isn't another work around, that'd be great.
The filename when appended as a header needs to be encoded with HttpUtility.UrlEncode. Something like this...
// If it's the IE browser, we need to encode the filename
if
(HttpContext.Current.Request.UserAgent.IndexOf("; MSIE ") > 0)
{
response.AddHeader(
"Content-Disposition", "attachment; filename=" + HttpUtility.UrlEncode(file.Name));
}
else
{
// if it's anything else, the browser can handle the extended filename
response.AddHeader(
"Content-Disposition", "attachment; filename=" + file.Name);
}
If someone from Telerik could confirm that this is an actual bug and that there isn't another work around, that'd be great.