PaulMcInnis / JobFunnel

Scrape job websites into a single spreadsheet with no duplicates.
MIT License
1.81k stars 212 forks source link

read csv as utf8 #56

Closed jacenfox closed 4 years ago

jacenfox commented 4 years ago

Description

Had this error: UnicodeDecodeError: 'utf-8' codec can't decode, if the csv file is not saved in utf-8. Fix: force to read the existing csv file in encoding utf-8

Changed L151 from: with open(path, 'r') as csvfile: to: with open(path, 'r', encoding='utf8', errors='ignore') as csvfile:

Type of change

Please mark any boxes that apply.

How Has This Been Tested?

Before:

Please mark any boxes that have been completed.