Documentation
¶
Index ¶
- Variables
- func ANY_to_UTF8(src []byte, charset string) ([]byte, error)
- func CP1250_to_UTF8(src []byte) []byte
- func CP1251_to_UTF8(src []byte) []byte
- func CP1252_to_UTF8(src []byte) []byte
- func CP852_to_UTF8(src []byte) []byte
- func CP855_to_UTF8(src []byte) []byte
- func CP866_to_UTF8(src []byte) []byte
- func ISO88595_to_UTF8(src []byte) []byte
- func KOI8R_to_UTF8(src []byte) []byte
- func KOI8U_to_UTF8(src []byte) []byte
- func ToUTF8(table *DecodeTable, src []byte) []byte
- type DecodeTable
Constants ¶
This section is empty.
Variables ¶
View Source
var CP1250_UTF8_TABLE = DecodeTable{}/* 256 elements not displayed */
View Source
var CP1251_UTF8_TABLE = DecodeTable{}/* 256 elements not displayed */
View Source
var CP1252_UTF8_TABLE = DecodeTable{}/* 256 elements not displayed */
View Source
var CP852_UTF8_TABLE = DecodeTable{}/* 256 elements not displayed */
View Source
var CP855_UTF8_TABLE = DecodeTable{}/* 256 elements not displayed */
View Source
var CP866_UTF8_TABLE = DecodeTable{}/* 256 elements not displayed */
View Source
var ISO88595_UTF8_TABLE = DecodeTable{}/* 256 elements not displayed */
View Source
var KOI8R_UTF8_TABLE = DecodeTable{}/* 256 elements not displayed */
View Source
var KOI8U_UTF8_TABLE = DecodeTable{}/* 256 elements not displayed */
View Source
var KnownCharsets = map[string](*DecodeTable){ "CP1250": &CP1250_UTF8_TABLE, "cp1250": &CP1250_UTF8_TABLE, "WINDOWS-1250": &CP1250_UTF8_TABLE, "windows-1250": &CP1250_UTF8_TABLE, "CP1251": &CP1251_UTF8_TABLE, "cp1251": &CP1251_UTF8_TABLE, "WINDOWS-1251": &CP1251_UTF8_TABLE, "windows-1251": &CP1251_UTF8_TABLE, "CP1252": &CP1252_UTF8_TABLE, "cp1252": &CP1252_UTF8_TABLE, "WINDOWS-1252": &CP1252_UTF8_TABLE, "windows-1252": &CP1252_UTF8_TABLE, "CP852": &CP852_UTF8_TABLE, "cp852": &CP852_UTF8_TABLE, "IBM852": &CP852_UTF8_TABLE, "ibm852": &CP852_UTF8_TABLE, "CP855": &CP855_UTF8_TABLE, "cp855": &CP855_UTF8_TABLE, "IBM855": &CP855_UTF8_TABLE, "ibm855": &CP855_UTF8_TABLE, "CP866": &CP866_UTF8_TABLE, "cp866": &CP866_UTF8_TABLE, "IBM866": &CP866_UTF8_TABLE, "ibm866": &CP866_UTF8_TABLE, "KOI8-R": &KOI8R_UTF8_TABLE, "KOI8R": &KOI8R_UTF8_TABLE, "koi8-r": &KOI8R_UTF8_TABLE, "koi8r": &KOI8R_UTF8_TABLE, "KOI8-U": &KOI8U_UTF8_TABLE, "KOI8U": &KOI8U_UTF8_TABLE, "koi8-u": &KOI8U_UTF8_TABLE, "koi8u": &KOI8U_UTF8_TABLE, "ISO-8859-5": &ISO88595_UTF8_TABLE, "ISO8859-5": &ISO88595_UTF8_TABLE, "iso-8859-5": &ISO88595_UTF8_TABLE, "iso8859-5": &ISO88595_UTF8_TABLE, }
Functions ¶
func CP1250_to_UTF8 ¶
func CP1251_to_UTF8 ¶
func CP1252_to_UTF8 ¶
func CP852_to_UTF8 ¶
func CP855_to_UTF8 ¶
func CP866_to_UTF8 ¶
func ISO88595_to_UTF8 ¶
func KOI8R_to_UTF8 ¶
func KOI8U_to_UTF8 ¶
func ToUTF8 ¶
func ToUTF8(table *DecodeTable, src []byte) []byte
Types ¶
type DecodeTable ¶
type DecodeTable [256]uint32
Click to show internal directories.
Click to hide internal directories.