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 ofri cofri for Is it possible to force Excel recognize UTF-8 CSV files automatically?

$
0
0

For those that can afford to convert a few files manually, there are some answers here mentioning on how to convert them with Notepad++, but I wanted to add the solution with VS Code (Visual Studio Code / VSCode):

  • Open the CSV file in VS Code
  • In the bottom bar, click in the encoding (in my case, is the 4th from the right: "UTF-8" , "LF", "Plain Text" , notifications bell). If you hover over it, it will show "Select Encoding". If you can't find it, the alternative is to click on VS Code "Help" menu (top bar) -> "Show All Commands" -> type "Change File Encoding"
  • It will open a list of actions in the top bar. Click "Save with Encoding"
  • It will open a list of possible encodings. Click in the one you want, and you are good to go, open it in Excel and display the correct characters there. In my case, I selected "UTF-8 with BOM", which worked in Excel 365 ("Excel for Microsoft 365 MSO (Version 2311)")

Viewing all articles
Browse latest Browse all 35

Trending Articles



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