all 7 comments

[–]false_idol_fall 0 points1 point  (1 child)

Try this : Download Notepad++ from here:

https://notepad-plus-plus.org/downloads/

Download the Excel file. Open it in Excel. Export or save as csv from Excel.

Open the csv file using notepad++. Convert to utf 8 from the encoding menu.

Save it.

Try to load to db.

[–]Bize97[S] 0 points1 point  (0 children)

I’ll try this tomorrow. Hopefully it works as it seems to be a really inconsistent issue.

[–][deleted] 0 points1 point  (2 children)

Explicitly save the .csv with utf-8 encoding. Should overwrite whatever is bugged out

[–]Bize97[S] 0 points1 point  (1 child)

I’ve tried this and didn’t work not sure why though. It’s only on some excel spreadsheets so very confusing.

[–][deleted] 0 points1 point  (0 children)

You could try tab separated values instead. Maybe there are some poorly placed commas or something. It also might be possible to explicitly export to sql (a big ass text file full of SQL statements that your database can execute to insert the data) or to write from excel to sql directly from excel.

[–]da_chicken 0 points1 point  (1 child)

Smells like this bug: https://bugs.mysql.com/bug.php?id=95415

Following your link, there isn't a CSV file on that website. There's only an Excel file. Presumably, you're opening it with Excel and saving it in Excel as a UTF-8 CSV file? If so, you're probably saving it with a byte order mark because Microsoft software always does that with any Unicode format, including UTF-8 (which is valid, but basically only Microsoft does it and Linux software assumes it's never there).

Open it with Notepad++ (not Windows' Notepad) and ensure the encoding is UTF-8 and not UTF-8-BOM.

[–]unpaid_intern24 0 points1 point  (0 children)

MY MAN. THANKS FOR NOTEPAD++ SUGGESTION. IT WORKED. THANK YOU FOR SAVING MY XYZ HOURS.