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

Answer by StriplingWarrior for Is it possible to force Excel recognize UTF-8...

The UTF-8 Byte-order marker will clue Excel 2007+ in to the fact that you're using UTF-8. (See this SO post). In case anybody is having the same issues I was, .NET's UTF8 encoding class does not output...

View Article


Answer by alc for Is it possible to force Excel recognize UTF-8 CSV files...

Simple vba macro for opening utf-8 text and csv files Sub OpenTextFile() filetoopen = Application.GetOpenFilename("Text Files (*.txt;*.csv), *.txt;*.csv") If filetoopen = Null Or filetoopen = Empty...

View Article


Answer by e-zinc for Is it possible to force Excel recognize UTF-8 CSV files...

We have used this workaround: Convert CSV to UTF-16 LE Insert BOM at beginning of file Use tab as field separator

View Article

Answer by Bragabondio for Is it possible to force Excel recognize UTF-8 CSV...

First save the Excel spreadsheet as Unicode text. Open the TXT file using Internet explorer and click "Save as" TXT Encoding - choose the appropriate encoding, i.e. for Win Cyrillic 1251

View Article

Answer by Mark for Is it possible to force Excel recognize UTF-8 CSV files...

Alex is correct, but as you have to export to csv, you can give the users this advice when opening the csv files: Save the exported file as a csv Open Excel Import the data using Data-->Import...

View Article


Is it possible to force Excel recognize UTF-8 CSV files automatically?

I'm developing a part of an application that's responsible for exporting some data into CSV files. The application always uses UTF-8 because of its multilingual nature at all levels. But opening such...

View Article

Answer by vess for Is it possible to force Excel recognize UTF-8 CSV files...

In php you just prepend $bom to your $csv_string:$bom = sprintf( "%c%c%c", 239, 187, 191); // EF BB BF file_put_contents( $file_name, $bom . $csv_string ); Tested with MS Excel 2016, php 7.2.4

View Article

Answer by podolinek for Is it possible to force Excel recognize UTF-8 CSV...

Working solution for office 365save in UTF-16 (no LE, BE)use separator \tCode in PHP$header = ['číslo', 'vytvořeno', 'ěščřžýáíé'];$fileName = 'excel365.csv';$fp = fopen($fileName, 'w');fputcsv($fp,...

View Article


Answer by Oliver M Grech for Is it possible to force Excel recognize UTF-8...

Just sharing a comprehensive function that might make your life easier working with CSV files.... please note last function argument in relation to this topicfunction array2csv($data, $file = '',...

View Article


Answer by Luca Ziegler for Is it possible to force Excel recognize UTF-8 CSV...

Found a solution for ASP.NET Core to download CSV's as UTF8 with POM:byte[] csvBytes = Encoding.Default.GetBytes(csvString);UTF8Encoding utf8 = new UTF8Encoding(true);byte[] bom =...

View Article

Answer by Herbert Van-Vliet for Is it possible to force Excel recognize UTF-8...

It's March 2022, and it seems we cannot use both a BOM and the sep=... line.Adding the sep=\t or similar, makes Excel ignore the BOM.Using a semicolon seems to be a default Excel understands, in which...

View Article

Answer by fantabolous for Is it possible to force Excel recognize UTF-8 CSV...

In Python, use encoding=utf-8-sig which is Python's name for UTF-8 with BOM. Just utf-8 will not get picked up by Excel or other Microsoft software.From https://docs.python.org/3/library/codecs.html:To...

View Article

Answer by ofri cofri for Is it possible to force Excel recognize UTF-8 CSV...

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...

View Article


Answer by Basj for Is it possible to force Excel recognize UTF-8 CSV files...

15 years later, I finally found the solution: write CSV in UTF-16-LE without BOM, and it will work on Excel 2007+.Example with Python:import csvwith open('test.csv', "w", encoding="utf-16-le",...

View Article

Answer by Thomas Ramé for Is it possible to force Excel recognize UTF-8 CSV...

Drastic change I made: instead of providing .csv to my users I provide .xlsx :)Since I was programmatically generating the CSV file and since only humans manipulate those files, there is no reason to...

View Article

Browsing all 35 articles
Browse latest View live


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