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

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

I faced the same problem a few days ago, and could not find any solution because I cannot use the import from csv feature because it makes everything to be styled as string. My solution was to first...

View Article



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

I tried everything I could find on this thread and similar, nothing worked fully. However, importing to google sheets and simply downloading as csv worked like a charm. Try it out if you come to my...

View Article

Answer by Christopher Adi Pascual for Is it possible to force Excel recognize...

You can convert .csv file to UTF-8 with BOM via Notepad++: Open the file in Notepad++. Go to menu Encoding→Convert to UTF-8. Go to menu File→Save. Close Notepad++. Open the file in Excel . Worked in...

View Article

Image may be NSFW.
Clik here to view.

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

hi i'm using ruby on rails for csv generation. In our application we plan to go for the multi language(I18n) and we faced an issue while viewing I18n content in the CSV file of windows excel. Was fine...

View Article

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

I am generating csv files from a simple C# application and had the same problem. My solution was to ensure the file is written with UTF8 encoding, like so: // Use UTF8 encoding so that Excel is ok with...

View Article


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

As I posted on http://thinkinginsoftware.blogspot.com/2017/12/correctly-generate-csv-that-excel-can.html: Tell the software developer in charge of generating the CSV to correct it. As a quick...

View Article

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

Download & install LibreOffice Calc Open the csv file of your choice in LibreOffice Calc Thank the heavens that an import text wizard shows up... ...select your delimiter and character encoding...

View Article

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

This is not accurately addressing the question but since i stumbled across this and the above solutions didn't work for me or had requirements i couldn't meet, here is another way to add the BOM when...

View Article


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

A truly amazing list of answers, but since one pretty good one is still missing, I'll mention it here: open the csv file with google sheets and save it back to your local computer as an excel file. In...

View Article


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

Yes, this is possible. As previously noted by multiple users, there seems to be a problem with excel reading the correct Byte Order Mark when the file is encoded in UTF-8. With UTF-16 it does not seem...

View Article

Image may be NSFW.
Clik here to view.

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

It is incredible that there are so many answers but none answers the question: "When I was asking this question, I asked for a way of opening a UTF-8 CSV file in Excel without any problems for a...

View Article

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

If you want to make it fully automatic, one click, or to load automatically into Excel from say a web page, but can't generate proper Excel files, then I would suggest looking at SYLK format as an...

View Article

Answer by Wagner Bertolini Junior for Is it possible to force Excel recognize...

Just for help users interested on opening the file on Excel that achieve this thread like me. I have used the wizard below and it worked fine for me, importing an UTF-8 file. Not transparent, but...

View Article


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

Old question but heck, the simplest solution is: Open CSV in Notepad Save As -> select the right encoding Open the new file

View Article

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

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)

View Article


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

Had the same problems with PHP-generated CSV files. Excel ignored the BOM when the Separator was defined via "sep=,\n" at the beginning of the content (but of course after the BOM). So adding a BOM...

View Article

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

This is my working solution: vbFILEOPEN = "your_utf8_file.csv" Workbooks.OpenText Filename:=vbFILEOPEN, DataType:=xlDelimited, Semicolon:=True, Local:=True, Origin:=65001 The key is Origin:=65001

View Article


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

I have had the same issue in the past (how to produce files that Excel can read, and other tools can also read). I was using TSV rather than CSV, but the same problem with encodings came up. I failed...

View Article

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

The bug with ignored BOM seems to be fixed for Excel 2013. I had same problem with Cyrillic letters, but adding BOM character \uFEFF did help.

View Article

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

This is an old question but I've just encountered had a similar problem and the solution may help others: Had the same issue where writing out CSV text data to a file, then opening the resulting .csv...

View Article

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 latest articles
Browse All 35 View Live




Latest Images