# Functions
AddCharset adds a new charset.
AddCollation adds a new collation.
AddSupportedCollation adds a new collation into supportedCollations.
CountValidBytes counts the first valid bytes in src that can be encoded to the current encoding.
CountValidBytesDecode counts the first valid bytes in src that can be decoded to utf-8.
FindEncoding finds the encoding according to charset.
FindEncodingTakeUTF8AsNoop finds the encoding according to the charset except that utf-8 is treated as no-operation encoding.
GetCharsetInfo returns charset and collation for cs as name.
GetCharsetInfoByID returns charset and collation for id as cs_number.
GetCollationByID returns collations by given id.
No description provided by the author
GetCollations returns a list for all collations.
GetDefaultCharsetAndCollate returns the default charset and collation.
GetDefaultCollation returns the default collation for charset.
GetDefaultCollationLegacy is compatible with the charset support in old version parser.
GetSupportedCharsets gets descriptions for all charsets supported so far.
GetSupportedCollations gets information for all collations supported so far.
HackSlice converts string to slice without copy.
HackString converts slice to string without copy.
IsSupportedEncoding checks if the charset is fully supported.
Lookup returns the encoding with the specified label, and its canonical name.
NewCustomGBKEncoder return a custom GBK encoding.
RemoveCharset remove a charset.
ValidCharsetAndCollation checks the charset and the collation validity and returns a boolean.
# Constants
No description provided by the author
CharsetASCII is a subset of UTF8.
No description provided by the author
CharsetBin is used for marking binary charset.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CharsetLatin1 is a single byte charset.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CharsetUTF8 is the default charset for string types.
CharsetUTF8MB4 represents 4 bytes utf8, which works the same way as utf8 in Go.
CollationASCII is the default collation for CharsetACSII.
CollationBin is the default collation for CharsetBin.
No description provided by the author
No description provided by the author
CollationLatin1 is the default collation for CharsetLatin1.
CollationUTF8 is the default collation for CharsetUTF8.
CollationUTF8MB4 is the default collation for CharsetUTF8MB4.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
CharacterSetInfos: All the supported charsets should be in the following table.
EncodingASCIIImpl is the instance of encodingASCII.
EncodingBinImpl is the instance of encodingBin.
EncodingGBKImpl is the instance of encodingGBK.
EncodingLatin1Impl is the instance of encodingLatin1.
EncodingUTF8Impl is the instance of encodingUTF8.
EncodingUTF8MB3StrictImpl is the instance of encodingUTF8MB3Strict.
No description provided by the author
ErrInvalidCharacterString returns when the string is invalid in the specific charset.
No description provided by the author
GBKCase follows https://dev.mysql.com/worklog/task/?id=4583.
TiFlashSupportedCharsets is a map which contains TiFlash supports charsets.
# Interfaces
Encoding provide encode/decode functions for a string with a specific charset.