]> granicus.if.org Git - python/commitdiff
CHARSETS: Add faux '8bit' encoding for representing raw 8-bit data for
authorBarry Warsaw <barry@python.org>
Mon, 14 Oct 2002 15:06:55 +0000 (15:06 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 14 Oct 2002 15:06:55 +0000 (15:06 +0000)
which we know nothing else.

Lib/email/Charset.py

index b47606501d4d4487c2e797729b4878d8ae6d8603..b852245b00af024b46fe728d6a2a5d2f3b76812c 100644 (file)
@@ -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