Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #93442
| From | Veek M <vek.m1234@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | requests.Session() how do you set 'replace' on the encoding? |
| Date | 2015-07-02 21:52 +0530 |
| Organization | Home |
| Message-ID | <mn3oec$7ep$1@dont-email.me> (permalink) |
I'm getting a Unicode error:
Traceback (most recent call last):
File "fooxxx.py", line 56, in <module>
parent = anchor.getparent()
UnicodeEncodeError: 'gbk' codec can't encode character u'\xa0' in position
8: illegal multibyte sequence
I'm doing:
s = requests.Session()
to suck data in, so.. how do i 'replace' chars that fit gbk
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll 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