Project

General

Profile

Actions

$encode » History » Revision 20

« Previous | Revision 20/21 (diff) | Next »
Per Amundsen, 02/16/2023 09:38 PM


Added in 1.9.0

$encode(text|&binvar, abmuthxr, N)

Encode text or &binvar using Uuencode, Mime or html codes.

If encoding a &binvar, returns the actual number of characters written to the &binvar.

Default is Uuencode.

See also $decode.

Parameters

Parameter Description
text|&binvar The text or a &binvar to encode.
abmuth a = base32 encoding, b indicates a &binvar is specified, h = html coded encoding, r = url encoding, m = mine encoding, u = Uuencode (default), t = text (default), x = hex encode. (h,x and r is AdiIRC only)
N If N = 0, number of 60-character chunks, otherwise the Nth 60-character chunk.

Example

; UUencode 'test'.
//echo -ag $encode(test)

; UUencode 'test', then decode it.
//echo -ag $decode($encode(test))

$encode(%var | &binvar, switches, key, [salt | iv])

TODO

Updated by Per Amundsen almost 2 years ago · 20 revisions

Also available in: PDF HTML TXT