Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #93590

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

From Veek M <vek.m1234@gmail.com>
Newsgroups comp.lang.python
Subject Re: requests.Session() how do you set 'replace' on the encoding?
Date 2015-07-09 15:55 +0530
Organization Home
Message-ID <mnli4k$o08$1@dont-email.me> (permalink)
References <mn3oec$7ep$1@dont-email.me> <mailman.266.1435903179.3674.python-list@python.org> <mndi4e$kd6$1@dont-email.me> <mailman.337.1436247510.3674.python-list@python.org>

Show all headers | View raw


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.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

requests.Session() how do you set 'replace' on the encoding? Veek M <vek.m1234@gmail.com> - 2015-07-02 21:52 +0530
  Re: requests.Session() how do you set 'replace' on the encoding? dieter <dieter@handshake.de> - 2015-07-03 07:59 +0200
    Re: requests.Session() how do you set 'replace' on the encoding? Veek M <vek.m1234@gmail.com> - 2015-07-06 15:06 +0530
      Re: requests.Session() how do you set 'replace' on the encoding? dieter <dieter@handshake.de> - 2015-07-07 07:38 +0200
        Re: requests.Session() how do you set 'replace' on the encoding? Veek M <vek.m1234@gmail.com> - 2015-07-09 15:55 +0530

csiph-web