'charmap' codec can't encode character '\u2013' in position 112: character maps to <undefined>
for d in soup.find_all(href=re.compile(url)):
It is not an error from Python but it is because of Windows, in my case there was one character which was not getting encoded properly in command prompt (console) so I had to change the encoding to UTF-8. Solution is pretty simple just type following command.
Active code page: 65001
CHCP changes the active console code page. 65000 code page is encoded as UTF-7 and 65001 code page is encoded as UTF-8.
Post a Comment
Note: Only a member of this blog may post a comment.