Method MIME.encode()
- Method encode
string encode(string data, string encoding, void|string filename, void|int no_linebreaks)
- Description
Encode raw data into something suitable for transport to other systems.
The encoding can be any of
"7bit" "8bit" "base64" "binary" "quoted-printable" "x-uue" "x-uuencode"
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