[Email] A Stephen Turnbull says, if there's no charset, you must assume it's us-ascii. Here's an (untested) example using the email package: import email msg = email.message_from_string(...) if msg.get_main_type() == 'text': charset = msg.get_param('charset', 'us-ascii') else: charset = NotAppropriate -Barry
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4