I'm trying to follow SentDex tutorial on youtube but I'm getting this error(see below) on ATOM but not in IDLE
I checked my ATOM settings and encoding was set to UTF8 so I'm not sure what going on now.
The code is:
I checked my ATOM settings and encoding was set to UTF8 so I'm not sure what going on now.
The code is:
import bs4 as bs import urllib.request as ur sauce = ur.urlopen('https://pythonprogramming.net/parsememcparseface/').read() soup = bs.BeautifulSoup(sauce, 'lxml') print(soup.find_all('p'))The error I got from ATOM
Error:Traceback (most recent call last):
File "C:\Programming\Codes\Py\BS4_Tut_1.py", line 7, in <module>
print(soup.find_all('p'))
File "C:\Programming\Python36\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u1d90' in position 602: character maps to <undefined>