charsetutil

package
v0.0.0-...-4f7920e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeterminEncoding

func DeterminEncoding(r io.Reader) (encoding.Encoding, string, error)

DeterminEncoding 会根据 HTML 页面中的 meta 元信息猜测网页编码

func GbkToUtf8

func GbkToUtf8(s []byte) ([]byte, error)

func Utf8ToGbk

func Utf8ToGbk(s []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL