Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectBOM ¶
DetectBOM inspects the leading bytes for a Unicode BOM and returns the detected charset and number of BOM bytes to skip. Returns ("", 0) if no BOM is found.
func ExtractCharset ¶
ExtractCharset parses the charset parameter from a Content-Type header value. Returns empty string if no charset is declared.
func NormalizeCharset ¶
NormalizeCharset maps common charset aliases to canonical lowercase names.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.