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

Fetcher cannot serialize unicode pages #10

Open
GiovanH opened this issue Mar 3, 2024 · 1 comment
Open

Fetcher cannot serialize unicode pages #10

GiovanH opened this issue Mar 3, 2024 · 1 comment

Comments

@GiovanH
Copy link

GiovanH commented Mar 3, 2024

In pages with unicode symbols, self._response2namespace(response).dump(self._url2path(url)) fails with

UnicodeEncodeError: 'charmap' codec can't encode           
                    character '\u2696' in position 6182: character             
                    maps to <undefined>

.dump() seems to be trying to save a yaml object with a default encoding, when it needs to force utf-8.

@vokimon
Copy link
Owner

vokimon commented Aug 20, 2024

Could you provide an example of url please?

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

2 participants