Documentation for Request library says that requests.get() method returns unicode always. But when I try to know what an encoding was returned, I see "windows-1251". That's a problem. When I try to get requests.get(url).text, there's an error, because current url's content has a Cyrillic symbols.
import requests url = 'https://www.weblancer.net/jobs/' r = requests.get(url) print r.encoding print r.text I got something like that:
windows-1251 UnicodeEncodeError: 'ascii' codec can't encode characters in position 256-263: ordinal not in range(128) Is it a problem of Python 2.7 or there is not a problem at all ? Help me
.contentnot.text, also where are you running it from?#printproblem. Python need to convert text to ascii to print it in terminal, but it's imposible