Project

General

Profile

$encode » History » Version 12

Per Amundsen, 11/30/2018 06:36 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3 11 Per Amundsen
*$encode(text|&binvar, abmuth, 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 10 Per Amundsen
_See also [[$decode]]._
12
13 1 Per Amundsen
*Parameters*
14
15
text|&binvar - The text or a &binvar to encode.
16 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)
17 12 Per Amundsen
N - If N = 0, number of 60-character chunks, otherwise the Nth 60-character chunk.
18 6 Per Amundsen
19
*Example*
20
21
<pre>
22
; UUencode 'test'.
23
//echo -ag $encode(test)
24
25
; UUencode 'test', then decode it.
26
//echo -ag $decode($encode(test))
27
</pre>
28 8 Per Amundsen
29 9 Per Amundsen
-------------------------
30 8 Per Amundsen
31
*$encode(%var | &binvar, switches, key, [salt | iv])*
32
33
TODO