ASP.NET Excel export encoding problem

前端 未结 6 1833
-上瘾入骨i
-上瘾入骨i 2020-11-27 03:44

I\'m doing some Excel Exports on the ASP.NET Site. Everything works except of the Encoding. When I open it in Excel, it looks like this:

Eingabe Koste

6条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-27 04:09

    Have you tried setting the encoding in a meta tag in the HTML?

    
    

    Excel won't see the response headers, so it won't know what the Response.Encoding is. The meta tag allows it to find out.

提交回复
热议问题