Last post Oct 14, 2005 03:28 PM by Caddre
Jul 29, 2005 10:34 PM|dadamushroom|LINK
I was given some help the day before yesterday,and I really appreciate your help,I tried it,but the encoding problem still exist,for example,the Chinese characters "哈哈" in my datagrid,when exporting to Excel,the words"哈哈"become
another words like"1p1p",I don't know why,and I don't know what problem it is.An upperclassman tell me that it's an encode problem,Chinese characters using Unicode. I use it in my programme(you will see ),but it cut no ice.Can anybody tell me,what's wrong?This
problem has puzzled me for many days,I am now thinking and trying it the all day.
I want to export datagrid to excle using:
Private Sub DataToExcel()
//Here,what should I write?
//I have tried this: Response.ContentEncoding=System.Text.UTF8Encoding.Default
//But it can't work.
//Now I use this ,but the problem still exist.
Dim stringwrite as New System.IO.StringWriter
Dim htmlwrite as New System.Web.UI.HtmlTextWriter(stringwrite)
I am a student from China,my English is poor,so sorry,but Thank you very much.
Oct 14, 2005 03:28 PM|Caddre|LINK