Quantcast
Channel: Is it possible to force Excel recognize UTF-8 CSV files automatically? - Stack Overflow
Viewing all articles
Browse latest Browse all 35

Answer by zax for Is it possible to force Excel recognize UTF-8 CSV files automatically?

$
0
0

Yes it is possible. When writing the stream creating the csv, the first thing to do is this:

myStream.Write(Encoding.UTF8.GetPreamble(), 0, Encoding.UTF8.GetPreamble().Length)

Viewing all articles
Browse latest Browse all 35

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>