$decode » History » Version 14
Per Amundsen, 04/06/2019 12:41 AM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | 13 | Per Amundsen | *$decode(text|&binvar, abmuthx)* |
4 | 1 | Per Amundsen | |
5 | Decodes text or &binvar using Uuencode, Mime or html codes. |
||
6 | |||
7 | If decoding a &binvar, returns the actual number of characters written to the &binvar. |
||
8 | |||
9 | Default is Uuencode. |
||
10 | |||
11 | 12 | Per Amundsen | _See also [[$encode]]._ |
12 | |||
13 | 1 | Per Amundsen | *Parameters* |
14 | |||
15 | text|&binvar - The text or a &binvar to decode. |
||
16 | 14 | Per Amundsen | abmuth - a = base32 encoding, b indicates a &binvar is specified, h = html coded encoding, m = mine encoding, u = Uuencode (default), t = text (default), h = hex decode. (h and x is AdiIRC only) |
17 | 4 | Per Amundsen | |
18 | <pre> |
||
19 | ; UUencode 'test'. |
||
20 | //echo -ag $encode(test) |
||
21 | |||
22 | ; UUencode 'test', then decode it. |
||
23 | //echo -ag $decode($encode(test)) |
||
24 | </pre> |
||
25 | 6 | Per Amundsen | |
26 | ------------------------- |
||
27 | |||
28 | *$decode(%var | &binvar, switches, key, [salt | iv])* |
||
29 | |||
30 | TODO |