c#, Excel + csv: how to get the correct encoding?

前端 未结 7 1211
有刺的猬
有刺的猬 2020-12-20 12:12

I\'ve been trying this for quite a while now, but can\'t figure it out. I\'m trying to export data to Excel via a *.csv file. It works great so far, but I have some encodi

7条回答
  •  借酒劲吻你
    2020-12-20 12:37

    This solution is written up as a fix for a Java application however you should be able to do something similar in C#. You may also want to look at the documentation on the StreamWriter class, in the remarks it refers to the Byte Order Mark (BOM).

提交回复
热议问题