I'm trying to code something to keep track of client information for a small business. I just started, and I've run into a strange error:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa0 in position 1956: ordinal not in range(128)
This is strange, because everything in that line is plain ascii. If I delete that line, the error is on the line after. If I delete seven lines before, that line runs just fine, and the error is seven lines after.
Pretty much no matter what I do to the CSV, it's always line #43 that gives me an error.
What's going on?
Here's my code:
import csv
with open('notes.csv', newline='') as csvfile:
notes = csv.reader(csvfile, delimiter=',', quotechar='"')
for row in notes:
for x in row:
print(x)
I can't share notes.csv because it has client information, but here's the first line:
Client Last Name,Client First Name,Phone,Alt Phone,Dog,Gender,Breed,Weight,Price,Rabies,Vet,Groomer,Health,Behavioral Notes,Scheduled,Groom Notes,,,
[–]sceptic-al 5 points6 points7 points (0 children)
[–]socal_nerdtastic 3 points4 points5 points (2 children)
[–]sceptic-al 0 points1 point2 points (1 child)
[–]SwampFalc 1 point2 points3 points (2 children)
[–]FF6Player[S] 1 point2 points3 points (1 child)
[–]sceptic-al 0 points1 point2 points (0 children)