requests.Session() how do you set 'replace' on the encoding?

Veek M vek.m1234 at gmail.com
Thu Jul 9 12:25:45 CEST 2015


dieter wrote:
> 
> It looks strange that you can set "s.encoding" after you have
> called "s.get" - but, as you apparently get an error related to
> the "gbk" encoding, it seems to work.

Ooo! Sorry, typo - that was outside the function but before the call. 
Unfortunately whilst improving my function for Usenet, i screwed it up even 
further. (just ignore that, as you have)

to the rest of your answer - many thanks, will do.


More information about the Python-list mailing list