Project

General

Profile

$encode » History » Version 7

Per Amundsen, 12/23/2016 03:52 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3 7 Per Amundsen
*$encode(text|&binvar, abmut, N)*
4 1 Per Amundsen
5 3 Per Amundsen
Encode text or &binvar using Uuencode, Mime or html codes.
6 1 Per Amundsen
7
If encoding a &binvar, returns the actual number of characters written to the &binvar.
8
9
Default is Uuencode.
10
11
*Parameters*
12
13
text|&binvar - The text or a &binvar to encode.
14 6 Per Amundsen
abhmut - a = base32 encoding, b indicates a &binvar is specified, h = hmtl coded encoding, m = mine encoding, u = Uuencode (default), t = text (default). (h is AdiIRC only)
15 1 Per Amundsen
N - TODO
16 6 Per Amundsen
17
*Example*
18
19
<pre>
20
; UUencode 'test'.
21
//echo -ag $encode(test)
22
23
; UUencode 'test', then decode it.
24
//echo -ag $decode($encode(test))
25
</pre>