Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7cd7240

Browse files
committed
CHARSETS: Add faux '8bit' encoding for representing raw 8-bit data for
which we know nothing else.
1 parent f834ecb commit 7cd7240

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/email/Charset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ def _isunicode(s):
4343
'iso-2022-jp': (BASE64, None, None),
4444
'koi8-r': (BASE64, BASE64, None),
4545
'utf-8': (SHORTEST, BASE64, 'utf-8'),
46+
# We're making this one up to represent raw unencoded 8-bit
47+
'8bit': (None, BASE64, 'utf-8'),
4648
}
4749

4850
# Aliases for other commonly-used names for character sets. Map

0 commit comments

Comments
 (0)