From 6d4ca0b48b1796bf704fe777e0e6a10e6b068058 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Thu, 19 Oct 2023 12:38:07 +0100 Subject: [PATCH] Include the full set of supported UTF encodings --- httpx/_utils.py | 7 +++++++ 1 file changed, 7 insertions(+) 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", }