true-encoding

true_encoding is the method of solving the problem of 'ISO-8859-1' about parsing html.


Keywords
encoding, true_encoding, encode_bug, encode_debug, debug, iso-8859-1, requests
License
MIT
Install
pip install true-encoding==1.0.2

Documentation

true_encoding

Usage:

>>>from true_encoding.debug import debug

>>>r = requests.get('http://www.fang.com')

>>>r.encoding = debug(r)

>>>print(r.text)