-
-
Notifications
You must be signed in to change notification settings - Fork 300
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
UnicodeEncodeError when Downloading Novels from Arabic Sources with Non-ASCII Characters in URLs #2308
Comments
I've resolved the issue by updating the code in
to:
This change ensures that headers are now encoded using UTF-8 instead of ASCII encoding. I'm keeping this issue open for anyone who may encounter a similar error or to investigate further. |
I'll make a new PR for this no need to keep this issue open. |
Can you test the change with the links? It doesn't work for me with both links. |
Working fine with me, I forgot to mention that I did the change in the PIP version not exe, since EXE version extracting a new scraper.py on each launch.
if the links doesn't work maybe you need vpn, and copy the links directly from issue not after opening in new browser tab since it will redirect to new domain |
Describe the bug
"When attempting to download a novel from an Arabic source containing Arabic characters in the URL, a
UnicodeEncodeError
is raised with the message'ascii' codec can't encode characters in position XX-XX: ordinal not in range(128)
. This error occurs due to the presence of non-ASCII characters in the URL.Example novel links causing the issue:
Log:
This error originates from attempting to encode non-ASCII characters into ASCII during the scraping process."
Let us know
App source: EXE
App version: 3.5.0
Your OS: Windows 11 23H2 22631.2506
The text was updated successfully, but these errors were encountered: