úÎ!'ë'Safe~ None&û html-charset)Represent a name of text encoding (i.e., charset ). E.g., "UTF-8". html-charset|Detect the character encoding from a given HTML fragment. The precendence order for determining the character encoding is: YA BOM (byte order mark) before any other data in the HTML document itself. (See also  function for details.)A  meta declaration with a charset attribute or an  http-equiv attribute set to  Content-Type and a value set for charsetA. Note that it looks at only first 1024 bytes. (See also  for details.) :https://www-archive.mozilla.org/projects/intl/chardet.htmlMozilla's Charset Detectors2 heuristics. To be specific, it delegates to   from the  4https://hackage.haskell.org/package/charsetdetect-aecharsetdetect-ae/ package, a Haskell implementation of that.:set -XOverloadedStrings<detect "\xef\xbb\xbf\xe4\xbd\xa0\xe5\xa5\xbd<html><head>..." Just "UTF-8".detect "<html><head><meta charset=latin-1>..."Just "latin-1"Gdetect "<html><head><title>\xbe\xee\xbc\xad\xbf\xc0\xbc\xbc\xbf\xe4..." Just "EUC-KR"It may return  M if it fails to determine the character encoding, although it's less likely. html-charsetgDetect the character encoding from a given HTML fragment by looking the initial BOM (byte order mark).:set -XOverloadedStrings0detectBom "\xef\xbb\xbf\xe4\xbd\xa0\xe5\xa5\xbd" Just "UTF-8"$detectBom "\xfe\xff\x4f\x60\x59\x7d"Just "UTF-16BE"$detectBom "\xff\xfe\x60\x4f\x7d\x59"Just "UTF-16LE"<detectBom "\x00\x00\xfe\xff\x00\x00\x4f\x60\x00\x00\x59\x7d"Just "UTF-32BE"<detectBom "\xff\xfe\x00\x00\x60\x4f\x00\x00\x7d\x59\x00\x00"Just "UTF-32LE",detectBom "\x84\x31\x95\x33\xc4\xe3\xba\xc3"Just "GB-18030" It returns  + if it fails to find no valid BOM sequence.detectBom "foobar"Nothing html-charsetGDetect the character encoding from a given HTML fragment by looking a  meta declaration with a charset attribute or an  http-equiv attribute set to  Content-Type and a value set for charset.:set -XOverloadedStrings4detectMetaCharset "<html><head><meta charset=utf-8>" Just "utf-8"7detectMetaCharset "<html><head><meta charset='EUC-KR'>" Just "EUC-KR"IdetectMetaCharset "<html><head><meta charset=\"latin-1\"/></head></html>"Just "latin-1":{detectMetaCharsetH "<meta http-equiv=content-type content='text/html; charset=utf-8'>":} Just "utf-8"Return  ! if it failed to any appropriate  meta tag:.detectMetaCharset "<html><body></body></html>"Nothing     )html-charset-0.1.0-7qmc0s2FPOTA5DjSzTuCxCText.Html.Encoding.DetectionPaths_html_charset EncodingNamedetect detectBomdetectMetaCharsetversion getBinDir getLibDir getDynLibDir getDataDir getLibexecDir getSysconfDirgetDataFileName/charsetdetect-ae-1.1.0.4-8OUdNYIdWCuG0r1iCCqNrSCodec.Text.DetectdetectEncodingNamebaseGHC.BaseNothing