package htmlindex
import "golang.org/x/text/encoding/htmlindex"
Package htmlindex maps character set encoding names to Encodings as recommended by the W3C for use in HTML 5. See http://www.w3.org/TR/encoding.
Index ¶
- func Get(name string) (encoding.Encoding, error)
- func LanguageDefault(tag language.Tag) string
- func Name(e encoding.Encoding) (string, error)
Functions ¶
func Get ¶
Get returns an Encoding for one of the names listed in http://www.w3.org/TR/encoding using the Default Index. Matching is case- insensitive.
func LanguageDefault ¶
LanguageDefault returns the canonical name of the default encoding for a given language.
func Name ¶
Name reports the canonical name of the given Encoding. It will return an error if e is not associated with a supported encoding scheme.
Source Files ¶
htmlindex.go map.go tables.go
- Version
- v0.22.0 (latest)
- Published
- Feb 4, 2025
- Platform
- linux/amd64
- Imports
- 12 packages
- Last checked
- 1 day ago –
Tools for package owners.