Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DataBuilder/src/csv_to_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def columnTitles(self):
Grabs the column/category titles.
"""

with codecs.open(self.input_file, encoding='latin1') as f:
with codecs.open(self.input_file, encoding='utf-8') as f:
reader = csv.reader(f)
self.headers = next(reader)

Expand All @@ -68,7 +68,7 @@ def toDict(self):
Output File (str): Name of file where dictionary list is written.
List of Dictionaries (list): List of converted dictionaries (with no duplicates)
"""
with codecs.open(self.input_file, encoding='latin1') as csvfile:
with codecs.open(self.input_file, encoding='utf-8') as csvfile:
# with open(self.input_file, 'r') as csvfile:
scrape_dict = csv.DictReader(csvfile)
self.list_of_dicts = [x for x in scrape_dict]
Expand Down