Documentation ¶
Overview ¶
Package gcharset implements character-set conversion functionality.
Supported Character Set:
Chinese : GBK/GB18030/GB2312/Big5
Japanese: EUCJP/ISO2022JP/ShiftJIS
Korean : EUCKR
Unicode : UTF-8/UTF-16/UTF-16BE/UTF-16LE
Other : macintosh/IBM*/Windows*/ISO-*
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
Convert converts `src` charset encoding from `srcCharset` to `dstCharset`, and returns the converted string. It returns `src` as `dst` if it fails converting.
func Supported ¶
Supported returns whether charset `charset` is supported.
func ToUTF8 ¶
ToUTF8 converts `src` charset encoding from `srcCharset` to UTF-8 , and returns the converted string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.