From: Barry Warsaw Date: Mon, 14 Oct 2002 15:06:55 +0000 (+0000) Subject: CHARSETS: Add faux '8bit' encoding for representing raw 8-bit data for X-Git-Tag: v2.3c1~3790 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7cd724049f3d6c741dc3d7d3b652ba9a83481e5d;p=python CHARSETS: Add faux '8bit' encoding for representing raw 8-bit data for which we know nothing else. --- diff --git a/Lib/email/Charset.py b/Lib/email/Charset.py index b47606501d..b852245b00 100644 --- a/Lib/email/Charset.py +++ b/Lib/email/Charset.py @@ -43,6 +43,8 @@ CHARSETS = { 'iso-2022-jp': (BASE64, None, None), 'koi8-r': (BASE64, BASE64, None), 'utf-8': (SHORTEST, BASE64, 'utf-8'), + # We're making this one up to represent raw unencoded 8-bit + '8bit': (None, BASE64, 'utf-8'), } # Aliases for other commonly-used names for character sets. Map