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

  • Question

  • Hi,

    I am returning a Stream as data of an API 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



    Monday, January 25, 2016 12:07 PM

All replies

  • Hi Harish,

    Thank you for your question.
     
    By this issue, we suggest you redirect this case to MSDN forum by the following link:

    https://social.msdn.microsoft.com/Forums/en-us/home

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding., 

    Best Regard,

    Jim Xu

    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Jim Xu
    TechNet Community Support

    Tuesday, January 26, 2016 7:37 AM
  • https://social.msdn.microsoft.com/Forums/en-US/ee5e09f3-4d2d-4615-b56c-90a39319f335/download-file-with-file-name-in-japanese-character-gets-garbled?forum=iewebdevelopment
    Tuesday, January 26, 2016 11:01 AM