Hello,

I am using a fileContentResult to render a file to the browser. It works well except that it throws an exception when the fileName contains international characters.
I remember reading somewhere that this feature does not support international characters but I am sure there mustbe a workaround or a best practice people follow in cases the application needs to upload files in countries other than US.

Does anyone know of such a practice?Here is the ActionResult Method

Code:
    public ActionResult GetFile(byte[] value, string fileName)
        {
            string fileExtension = Path.GetExtension(fileName);
            string contentType = GetContentType(fileExtension); //gets the content Type
            return File(value, contentType, fileName);
        }

THanks in advance

Susan