Task output encoding in VSCode
问题 I'm learning BeautifullSoup with Visual Studio Code and when I run this script: import requests from bs4 import BeautifulSoup from fake_useragent import UserAgent ua = UserAgent() header = {'user-agent':ua.chrome} google_page = requests.get('https://www.google.com',headers=header) soup = BeautifulSoup(google_page.content,'lxml') # html.parser print(soup.prettify()) And I'm getting the following error: Traceback (most recent call last): File "c:\ ... \intro-to-soup-2.py", line 13, in print