Project

General

Profile

$encode » History » Revision 14

Revision 13 (Per Amundsen, 11/30/2018 06:37 AM) → Revision 14/21 (Per Amundsen, 12/11/2018 01:11 PM)

_Added in 1.9.0_ 

 *$encode(text|&binvar, abmuthx, abmuth, N)* 

 Encode text or &binvar using Uuencode, Mime or html codes. 

 If encoding a &binvar, returns the actual number of characters written to the &binvar. 

 Default is Uuencode. 

 _See also [[$decode]]._ 

 *Parameters* 

 text|&binvar - The text or a &binvar to encode. 
 abmuth - a = base32 encoding, b indicates a &binvar is specified, h = hmtl coded encoding, m = mine encoding, u = Uuencode (default), t = text (default), x - hex encode. (default). (h and x is AdiIRC only) 
 N - If N = 0, number of 60-character chunks, otherwise the Nth 60-character chunk. 

 *Example* 

 <pre> 
 ; UUencode 'test'. 
 //echo -ag $encode(test) 

 ; UUencode 'test', then decode it. 
 //echo -ag $decode($encode(test)) 
 </pre> 

 ------------------------- 

 *$encode(%var | &binvar, switches, key, [salt | iv])* 

 TODO