& nbsp; Base64 will be input string by byte cut, get each byte corresponding to the binary value (if less than 8 bits, the high complement 0), and then these binary values in series, and then according to the 6-bit set of cuts (because 2 ^ 6 = 64), the last set of less than 6 bits, the end of the complement of 0. The binary value of each group will be converted to decimal, and then in the above-mentioned Each binary value is converted to decimal, and then in the above table to find the corresponding symbols and series is the result of Base64 encoding.

& nbsp; Base64 can be used for arbitrary data encoding of the underlying binary data, in order to apply to the transmission of ASCII characters can only be occasions. However, the most commonly used in the processing of text data transmission, such as in the MIME format e-mail, Base64 can be used to encode the contents of the mail to facilitate the transmission of different languages between computers and not messy code, pay attention to the transmission rather than display, such as the use of utf-8 encoding can be used to display the normal Chinese in Western European computers (with the corresponding font), but it may not be able to normal transmission of Chinese, the This is not a concern when converting to Base64.

Base64 encoding, if not specified, usually agreed that non-ASCII characters are encoded according to the UTF-8 character set.

Access to records: