Method MIME.encode()

Method encode

string encode(string data, void|string encoding, void|string filename, void|int no_linebreaks)


Encode raw data into something suitable for transport to other systems.

The encoding can be any of


The encoding string is not case sensitive. For the x-uue encoding, an optional filename string may be supplied.

If a nonzero value is passed as no_linebreaks, the result string will not contain any linebreaks (base64 and quoted-printable only).

See also