]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Include the full set of supported UTF encodings
authorTom Christie <tom@tomchristie.com>
Thu, 19 Oct 2023 11:38:07 +0000 (12:38 +0100)
committerTom Christie <tom@tomchristie.com>
Thu, 19 Oct 2023 11:38:07 +0000 (12:38 +0100)
httpx/_utils.py

index dc809e458223456306c7bdc853e34f49623612eb..9bfa779f4b874cf7440fe19a2c6536794ada1bad 100644 (file)
@@ -69,6 +69,13 @@ SUPPORTED_CODECS = {
     "shift_jis",  # shift-jis
     "utf-8",  # utf-8
     "utf-16-le",  # utf-16le
+    # We also support the following UTF flavors...
+    "utf-8-sig",
+    "utf-16",
+    "utf-16-be",
+    "utf-32",
+    "utf-32-be",
+    "utf-32-le",
 }