-
Notifications
You must be signed in to change notification settings - Fork 93
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
Commit 56466cd breaks encoding #158
Comments
Sorry about this. I can't seem to reproduce your MWE with ycombinator.com, but I also don't doubt it's happening. The utf-8 conversion has been highly problematic and every time I try to fix it for someone, I break it for someone else. My change in 30851dd#diff-912d9d4e16fd12f55900a2621903077eL1074 was admittedly cavalier and probably too aggressive. I will try to pare it back. Edit: I decided that change wasn't bold enough. I removed the line altogether in #159 . |
Commit 1562f9c seems to conflate the desire to encode request data in utf8 with also decoding server output. In light of tkf#157 and tkf#158, I am removing utf-8 decoding altogether. The impetus to encode to utf-8 in tkf#77, tkf#85, and github/org-trello/#340 suggest nothing about also decoding in utf-8, so I am crossing my fingers I won't rebreak for them. Also, clean up logging. It was impossible to follow with all the capital letters.
It works again with the latest version. Thanks so much for you quick action! |
OS: Ubuntu 18.04
Emacs 26.3
Request uses
curl
The latest commit 56466cd breaks on html buffers.
For example, the snippet bellow will read
https://news.ycombinator.com/front?day=2019-11-13
and put to a new buffer name temp:But on trying to save this temp buffer to file I got this error:
Since the buffer is not encoded properly, parser actions on it such as
libxml-parse-html-region
will fail.If i revert this line
emacs-request/request.el
Line 1074 in 56466cd
back to
It will work again. I don't know why, I just report my observation.
Thanks
The text was updated successfully, but these errors were encountered: