joenano / rpscrape

Scrape horse racing results data and racecards.
140 stars 57 forks source link

UnicodeEncodeError: 'charmap' codec can't encode character #85

Closed gbettle closed 2 years ago

gbettle commented 2 years ago

Morning,

Trying to run the racecards.py for today:

~/rpscrape/scripts (master) $ python racecards.py today Traceback (most recent call last): File "racecards.py", line 404, in main() File "racecards.py", line 400, in main f.write(dumps(races).decode('utf-8')) File "C:\Users\garry\AppData\Local\Programs\Python\Python38\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\x96' in position 99804: character maps to

joenano commented 2 years ago

think that was just a random temporary issue on the site, I checked it on the day and it ran fine