Documentation ¶
Index ¶
Constants ¶
View Source
const ( F = 0 /* character never appears in text */ T = 1 /* character appears in plain ASCII text */ I = 2 /* character appears in ISO-8859 text */ X = 3 /* character appears in non-ISO extended ASCII (Mac, IBM PC) */ )
Variables ¶
This section is empty.
Functions ¶
func FromHTML ¶
FromHTML returns the charset of an HTML document. It first looks if a BOM is present and if so uses it to determine the charset. If no BOM is present, it relies on the meta tag <meta charset="UTF-8"> and falls back on the plain text content.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.