: 내가 사용 코드 :아랍어 단어
HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
string attachment = "attachment; filename=Employee.xls";
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Buffer = true;
HttpContext.Current.Response.Charset = "UTF-8";
HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.UTF8;
HttpContext.Current.Response.AddHeader("content-disposition", attachment);
HttpContext.Current.Response.ContentType = "application/vnd.ms-excel";
Response.Write("السبت");// this word mean Saturday in arabic
Response.End();
Application.UnLock();
하지만 이후 내가 엑셀이 파일 열을 모양은 다음과 같습니다.
왜 단어가 어떻게 보이며이를 고칠 수 있습니까? 두 번째 행에 단어의 크기가 셀의 크기와 맞지 않는 경우 어떻게해야합니까? 다른 질문 : C# 코드 뒤에서 셀 배경을 색칠하는 방법과 셀을 결합하는 방법? 들으 어떤 방법
당신의 문자가 여기에서 설정 cange'HttpContext.Current.Response.Charset = "UTF-8"에 전달 .ContentEncoding = System.Text.Encoding.GetEncoding ("windows-1254"); 'HTTPContext.CUrrent.Response.Charset = "windows-1254"; ' – MethodMan
그 단어는 물음표처럼 보입니다. ?????? –
한 번에 한 가지 질문하십시오 : 인코딩, 셀 크기, 배경색. –