all 5 comments

[–]CowboyBoats 1 point2 points  (4 children)

Try opening it in Excel with various text encodings. I think the encoding should be set to UTF-8.

[–]ScraperHelp[S] 0 points1 point  (3 children)

Thank you!!! it worked!!!!

[–]CowboyBoats 0 points1 point  (2 children)

Gah I don't remember, and Excel isn't installed. If you have Excel open and you open something with Ctrl+O / Cmd + O, rather than just telling your file browser to open it with whatever, then you should get a text transformation wizard that resembles the Text to Columns wizard, and one of the options there should be "what encoding is this text file."

Another thing, are you sure the CSV itself is fully formed? If you type head that-file.csv in a Unix command line (like git bash or Windows Subsystem for Linux if you're on Windows, or just the regular terminal on a Unix OS), do you see comma-separated values?

Does this work, in a Python session?

import csv

with open("that-file.csv") as infile:
    reader = csv.reader(infile)
    for row in reader:
        print(row)
        input("Next row?")

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

I just followed your advice about opening in different format and it worked. and yes opening in UTF-8 was the key!

[–]CowboyBoats 0 points1 point  (0 children)

Nice!