<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://script.quakenet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=%24encode</id>
	<title>$encode - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://script.quakenet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=%24encode"/>
	<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$encode&amp;action=history"/>
	<updated>2026-06-04T09:46:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$encode&amp;diff=4790&amp;oldid=prev</id>
		<title>Aca20031 at 16:44, 10 May 2008</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$encode&amp;diff=4790&amp;oldid=prev"/>
		<updated>2008-05-10T16:44:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Encodes text that can be in a [[Variables|variable]] or a binary variable, using Mime or Uuencode.&lt;br /&gt;
&lt;br /&gt;
 $encode(%var | &amp;amp;binvar[, mubt][, N])&lt;br /&gt;
&lt;br /&gt;
* The first parameter is the [[Variables|variable]], raw text or [[Binary Files|binary variable]] to encode.&lt;br /&gt;
* The second parameter is a list of options pertaining to the type of encoding, and the type of variable given. Defaults are ut.&lt;br /&gt;
** m means that the text will be encoded using Mime. Do not use with u.&lt;br /&gt;
** u means that the text will be encoded using Uuencode. Do not use with m&lt;br /&gt;
** b means that the text is in a binary variable. Do not use with t.&lt;br /&gt;
** t means that the text is given straight or in a [[Variables|variable]]. Do not use with b.&lt;br /&gt;
* The last parameter is which chunk of encoded text you wish to return. Encode will encode the information into 60-character-each chunks. 0 returns the total number of chunks. Default is 1.&lt;br /&gt;
&lt;br /&gt;
* Returns&lt;br /&gt;
** For binary variables, returns the number of bytes written to the binary file.&lt;br /&gt;
** For text or [[Variables|variables]]&lt;br /&gt;
*** For N=0, returns the total number of 60-character chunks exists.&lt;br /&gt;
*** For N&amp;gt;0, returns the characters in the given chunk, or $null if N is too large&lt;br /&gt;
&lt;br /&gt;
[[Category:Text and Number Identifiers]]&lt;/div&gt;</summary>
		<author><name>Aca20031</name></author>
	</entry>
</feed>