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

fix decoding of response from HNPWA API so it is read as UTF-8 #1

Merged
merged 1 commit into from
Aug 2, 2019
Merged

Conversation

MaikuB
Copy link
Contributor

@MaikuB MaikuB commented May 30, 2019

Whilst making use of the package, I had noticed that certain parts of the text weren't appearing properly.

For example, item 20043410 has a title of The Boring Company will develop an underground “people mover” for Las Vegas. However, the package returns the title as The Boring Company will develop an underground “people moverâ€� for Las Vegas. Looking at the response headers, it can be seen that the charset isn't being set. As such the fix here is to decode the response body in bytes UTF-8 as per the discussion here

@MaikuB
Copy link
Contributor Author

MaikuB commented Jun 4, 2019

Looks like the build didn't actually break but stopped for some reason. Maybe needs further investigation there?

@brianegan brianegan merged commit 1916451 into brianegan:master Aug 2, 2019
@brianegan
Copy link
Owner

Oops, sorry i missed this! Thanks so much for the fix :) Shipping this as part of 2.0.0 with an upgrade to the HTTP library as well

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