GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — fix: fall back to 'charset' of 'content_type' in 'download_as_text' by tseaver · Pull Request #326 · googleapis/python-storage
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
Conversation
Contributor
Explicit 'encoding' overrides the fallback. Use the 'charset' param of 'content_type', rather than 'content_encoding', Closes #319.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Note for reviewers: the first commit (d4ee030) is the meat of the PR. The second one (0f434fb) is just rewrapping long / overindented docstring params for readability within the source. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Explicit 'encoding' overrides the fallback. Use the 'charset' param of 'content_type', rather than 'content_encoding', which isn't going to be a Unicode -> bytes encoding. Closes #319.
Improve in-source readability.
30d2dc1 to
3801122
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM for Python readability. Thanks for adding clear tests for this case (no explicit encode, but with a charset in the content-type header)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…oogleapis#326) Explicit 'encoding' overrides the fallback. Use the 'charset' param of 'content_type', rather than 'content_encoding', which isn't going to be a Unicode -> bytes encoding. Closes googleapis#319. Also, rewrap long param descriptions for in-source readability.
…oogleapis#326) Explicit 'encoding' overrides the fallback. Use the 'charset' param of 'content_type', rather than 'content_encoding', which isn't going to be a Unicode -> bytes encoding. Closes googleapis#319. Also, rewrap long param descriptions for in-source readability.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Blob.download_as_text does not decode properly
There was an error while loading. Please reload this page.