$decode » History » Version 20
  Per Amundsen, 09/10/2023 02:39 PM 
  
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ | 
|---|---|---|---|
| 2 | |||
| 3 | 20 | Per Amundsen | *$decode(text|&binvar, abmuthxrBRO)* | 
| 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 | 19 | Per Amundsen | table(ktable). | 
| 16 | |*Parameter*|*Description*| | ||
| 17 | | text<notextile>|</notextile>&binvar | The text or a &binvar to decode. | | ||
| 18 | 20 | Per Amundsen | | abmuthBRO | 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, B = binary, R = rot13, O = octal. *(h,x,r,B,R,O is AdiIRC only)* | | 
| 19 | 4 | Per Amundsen | |
| 20 | <pre> | ||
| 21 | ; UUencode 'test'. | ||
| 22 | //echo -ag $encode(test) | ||
| 23 | |||
| 24 | ; UUencode 'test', then decode it. | ||
| 25 | //echo -ag $decode($encode(test)) | ||
| 26 | </pre> | ||
| 27 | 6 | Per Amundsen | |
| 28 | ------------------------- | ||
| 29 | |||
| 30 | *$decode(%var | &binvar, switches, key, [salt | iv])* | ||
| 31 | |||
| 32 | 16 | Per Amundsen | *TODO* |