string this-> Encode64(string)

(Caronte Pcode version 2.0)

Description

string this-> Encode64( string );

Encode64() returns data encoded with base64. This encoding is designed to make binary data survive transport through transport layers that are not 8-bit clean, such as mail bodies.

Base64-encoded data takes about 33% more space than the original data.



Example.

Source:

CS_ANTISPAM_SCRIPT this = new CS_ANTISPAM_SCRIPT($_this);

string testo = "Lasciate ogni speranza....";

this->Print(this->Encode64(testo));




Out:

TGFzY2lhdGUgb2duaSBzcGVyYW56YS4uLi4=