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

UTF-8 encoding issues #120

Open
claell opened this issue Oct 17, 2023 · 1 comment
Open

UTF-8 encoding issues #120

claell opened this issue Oct 17, 2023 · 1 comment

Comments

@claell
Copy link

claell commented Oct 17, 2023

UTF-8 encoded websites are not saved with that encoding for me, causing issues.

Possibly related to #64.

@johndoe46
Copy link

Same problem here, because the server wouldn't send the correct headers and pywebcopy wouldn't read the meta charset from the html. I forced the encoding because I knew it:

(venv) code/pywebcopy [master {origin/master} ↑1|✔]: python
Python 3.12.4 (v3.12.4:8e8a4baf65, Jun  6 2024, 17:33:18) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from pywebcopy import save_website
>>> from pywebcopy.configs import default_config
>>> default_config["encoding"] = "utf-8"
>>> save_website(url="https://www.website.tld/", project_folder="/my/folder/", project_name="project name")

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