Skip to content

Fix decoding response data - #286

Open
sugyan wants to merge 1 commit into
hardikvasa:masterfrom
sugyan:fix-decoding
Open

Fix decoding response data#286
sugyan wants to merge 1 commit into
hardikvasa:masterfrom
sugyan:fix-decoding

Conversation

@sugyan

@sugyan sugyan commented Nov 27, 2019

Copy link
Copy Markdown

When searching in Japanese, there was a problem that garbled characters were generated in metadata obtained by extract_meta.

In download_page it uses str(resp.read()) to convert bytes to a string, which is wrong, It must decode correctly.
And it can eliminate unnecessary conversion when converting to JSON.

I also added test cases.

@hardikvasa

Copy link
Copy Markdown
Owner

Thanks for this fix! The decoding improvement is valuable, especially for non-ASCII characters. However, this PR has merge conflicts with recent updates. Would you be able to rebase this PR against the current master branch? The fix is still relevant and would be great to merge.

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

Successfully merging this pull request may close these issues.

2 participants