1

Internet Explorer에서 아랍어 파일 이름을 사용하여 파일을 다운로드 할 때 다운로드 프롬프트에 잘못된 문자 집합으로 나타나는 파일 이름이 표시됩니다. 첨부 된 이미지를 참조하십시오.Internet Explorer 파일 다운로드 프롬프트 문자 인코딩

enter image description here

그것이 내가 그것을 어떻게이 파일 이름의 표시를 바꿀 수 있다면?

+0

관련 프로그래밍을 인코딩하려고 ?? – mlwn

+0

@mlwn 이것이 스택 오버 플로우에 적합한 질문인지 여부를 묻고 있습니까? 내가 생각하기에. – garethdn

+0

지금까지 어떤 코드를 사용해 보셨습니까? – mlwn

답변

0

당신이 return File 방법을 사용하는 경우, 파일 이름

var fileName = Path.GetFileName(filePath); 
if (Request.Browser.Browser == "IE") 
{ 
    string attachment = string.Format("attachment; filename=\"{0}\"", 
             Server.UrlPathEncode(fileName)); 
    Response.AddHeader("Content-Disposition", attachment); 
} 
return File(filePath, "application/octet-stream", fileName); 
관련 문제