From: Tom Christie Date: Thu, 19 Oct 2023 11:38:07 +0000 (+0100) Subject: Include the full set of supported UTF encodings X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d4ca0b48b1796bf704fe777e0e6a10e6b068058;p=thirdparty%2Fhttpx.git Include the full set of supported UTF encodings --- diff --git a/httpx/_utils.py b/httpx/_utils.py index dc809e45..9bfa779f 100644 --- a/httpx/_utils.py +++ b/httpx/_utils.py @@ -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", }