demo_requests_response_encoding.py:
import requests url = 'https://w3schools.com/python/demopage.htm' x = requests.get(url) print(x.encoding)
C:\Users\My Name>python demo_requests_response_encoding.py
ISO-8859-1