1

I' trying to import a csv file in MySql WorkBench but get an error:

Can't analyze file. Please, try to change encoding type. If that doesn't help, maybe the file is not: csv, or the file is empty.

I've tried to import the csv file create in Open Office Calac, Notepad++ or even just plain MS Notepad but no success. Of course I've set the encoding to UTF-8 in all of the programs.

Here is the the csv file content:

ę,1
ó,2
ą,3
Akina
20.8k2 gold badges20 silver badges22 bronze badges
asked May 22, 2020 at 8:37
0

2 Answers 2

2

csv files are tricky.

You should have a header in your csv file and also mark strings with apostrophes

But for your csv you must select latin2 as encoding see image

workbench

You must choose the right encoding, because this determines how bits and bytes are interpreted.

so if you don't want ansi you have encode it properly

See here for notepad++

enter image description here

answered May 22, 2020 at 10:58
-2

Save your csv file as MS DOS instead of utf-8.

answered May 16, 2022 at 9:19
1
  • 1
    How does your answer differ from the previous answer? Please add an explanation, an example and possibly a reference to some material to support your answer. Thanks. Commented May 18, 2022 at 13:55

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.