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.14.1 · lts/ghc-9.14.x · 3e2d568 · 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