Python 3.4.0 — 'ascii' codec can't encode characters in position 11-15: ordinal not in range(128) — Unix 14.04
问题 Trying to retrieve some data from the web using urlib and lxml, I've got an error and have no idea, how to fix it. url='http://sum.in.ua/?swrd=автор' page = urllib.request.urlopen(url) The error itself: UnicodeEncodeError: 'ascii' codec can't encode characters in position 11-15: ordinal not in range(128) I'm using Ukrainian in API this time, but when I use API (without any Ukrainian letters in it) here: url="http://www.toponymic-dictionary.in.ua/index.php?option=com_content&view=section