Index: ahttp.py ================================================================== --- ahttp.py +++ ahttp.py @@ -51,11 +51,11 @@ #-- Retrieve data via HTTP # # Well, it says "get", but it actually does POST and AJAXish GET requests too. # -def get(url, params={}, referer="", post=0, ajax=0, binary=0, feedback=None, content=True, verify=False, statusmsg=None): +def get(url, params={}, referer="", post=0, ajax=0, binary=0, feedback=None, content=True, verify=False, statusmsg=None, encoding=None): # statusbar info progress_feedback(url) # combine headers @@ -87,10 +87,12 @@ return r elif binary: r = r.content else: # Receival is actually happening here + if encoding: + r.encoding = encoding r = r.text # clean statusbar statusmsg and progress_feedback() return r