Alipay+ DocsAlipay+ Docs

Message encoding

To prevent errors or ambiguity caused by special characters enclosed in a message, encode the message properly before the message is transmitted.

Encoding scenario

Encoding method

For the byte data, such as the signature and the encrypted content, encode the data with the base64 algorithm before transmitting.

Via the base64 algorithm

For certain fields embedded in the HTTPS URL, encode the field before transmitting.

For example:

If such URLs are received, you need to decode the URLs before use.

Via the urlencode