Documentation ¶
Index ¶
- func GBKStringToUTF8(gbkString string) (string, error)
- func GBKToUTF8(gbkBytes []byte) ([]byte, error)
- func HaveUTF8BOMHead(data []byte) bool
- func IsUTF8(data []byte) bool
- func IsUTF8BOM(data []byte) bool
- func UTF8StringToGBK(utf8String string) (string, error)
- func UTF8ToGBK(utfBytes []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GBKStringToUTF8 ¶
GBKStringToUTF8 converts GBK encoded string gbkString to UTF-8 string.
func HaveUTF8BOMHead ¶
HaveUTF8BOMHead checks whether data starts with UTF-8-BOM header.
func UTF8StringToGBK ¶
UTF8StringToGBK converts UTF-8 encoded string utf8String to GBK string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.