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 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11
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