This updates the http.get method to properly read the content-typeencoding parameter and convert the output based on that encoding.
Code is similar to code from requests library - requests handles this as part of their library automatically. I tested against a few different plugins, and it seems to work as expected still.
This also fixes an issue where a page I'm writing a plugin for has an encoding which isn't properly handled.
This updates the
http.get
method to properly read thecontent-type
encoding
parameter and convert the output based on that encoding.Code is similar to code from
requests
library -requests
handles this as part of their library automatically. I tested against a few different plugins, and it seems to work as expected still.This also fixes an issue where a page I'm writing a plugin for has an encoding which isn't properly handled.