Documentation ¶
Index ¶
Constants ¶
View Source
const ( ISO_8859_1 = "ISO-8859-1" UTF_8 = "UTF-8" GBK = "GBK" )
常量定义
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CharsetUtil ¶
type CharsetUtil struct{}
CharsetUtil 字符编码工具类
func (*CharsetUtil) Charset ¶
func (c *CharsetUtil) Charset(name string) (encoding.Encoding, error)
Charset 方法将编码字符串转为对应的 Charset 对象
func (*CharsetUtil) DefaultCharset ¶
func (c *CharsetUtil) DefaultCharset() encoding.Encoding
DefaultCharset 返回系统默认编码
func (*CharsetUtil) DefaultCharsetName ¶
func (c *CharsetUtil) DefaultCharsetName() string
DefaultCharsetName 返回系统默认编码字符串
Click to show internal directories.
Click to hide internal directories.