Skip to content

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa3 in position 105: invalid start byte #23

@simonw

Description

@simonw

Got this uploading this CSV: https://static.simonwillison.net/static/2022/Animal%20Rescue%20incidents%20attended%20by%20LFB%20from%20Jan%202009.csv

Relevant TODO:

def insert_docs(conn):
database = sqlite_utils.Database(conn)
# TODO: Support other encodings:
reader = csv_std.reader(codecs.iterdecode(csv.file, "utf-8"))
headers = next(reader)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions