Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSONDecodeError: Unexpected UTF-8 BOM #4

Open
paapu88 opened this issue Feb 6, 2023 · 0 comments
Open

JSONDecodeError: Unexpected UTF-8 BOM #4

paapu88 opened this issue Feb 6, 2023 · 0 comments

Comments

@paapu88
Copy link

paapu88 commented Feb 6, 2023

Hei,
Kun ajoin demo.ipynb niin tuli jotain otsikon tapaista erroria aika alussa.
Notebookki alkoi toimia kun lisäsin tiedostoon
finnish_business_portal/finnish_business_portal/core/opendata/opendata.py
rivin 56, page.encoding = "utf-8-sig" Nyt siis näyttää tältä ja notebook toimii:

            page = get_page(url)
            page.encoding = 'utf-8-sig'
            page.raise_for_status()
            conts.append(page.json())

terveisin, Markus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant