0
데이터베이스에서 중국 데이터를 다운로드하려고합니다. 그러나 데이터는이중국어 인쇄 원치 않는 문자를 Excel 다운로드?
œèŽžå¸,è¯šé € šè®¡ç®-æœºæŠ € 术å'¨è¯ ¢ æœåŠ¡æœ ‰ é ™ å ... ¬å처럼 Excel에서 다른 많은 charecters로오고있다 ¸
여기 내 다운로드 코드는 Excel입니다. 내 코드에서 무엇이 잘못되었는지 이해하지 못합니다.
dg.AllowPaging = False
dg.AllowSorting = False
dg.AllowCustomPaging = False
dg.AutoGenerateColumns = True
dg.HeaderStyle.Font.Bold = True
dg.HeaderStyle.Font.Underline = True
dg.DataSource = sqlDs.Tables(0)
dg.DataBind()
dg.RenderControl(htmlWrite)
Response.Clear()
Response.ClearContent()
Response.AddHeader("content-disposition", "attachment;filename=FullExtract_" & Now.Year.ToString & Now.Month.ToString & Now.Day.ToString & ".xls")
Response.ContentType = "application/octet-stream"
'Response.ContentType = "application/excel"
Response.BinaryWrite(System.Text.UnicodeEncoding.UTF8.GetBytes(stringWrite.ToString()))
Response.End()