Try to extract charset spec from Content-Type header e.g. "text/html; charset=ISO-8859-1"
Sometimes the server deliver the charset spec in quotes these are removed
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
Modulehxt-9.3.1.22Haskell2010
Try to extract charset spec from Content-Type header e.g. "text/html; charset=ISO-8859-1"
Sometimes the server deliver the charset spec in quotes these are removed