$encode » History » Version 17
Per Amundsen, 12/13/2019 09:14 PM
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ |
|---|---|---|---|
| 2 | |||
| 3 | 14 | Per Amundsen | *$encode(text|&binvar, abmuthx, 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 | 17 | 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), x = hex encode. *(h and x 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 |