UUE (.enc, .uue)
UUE (.enc, .uue)
Background & Context
-
- Unix uuencoding format.
- Encodes binary data as a sequence of printable ASCII characters.
- Commonly used for the transmission of binary content by email.
- The name uuencode is derived from Unix-to-Unix encoding.
- ASCII format.
- Uses printable ASCII characters to encode binary data.
Import & Export
- Import["file.ext.uue"] imports a uuencoded .ext file.
- Export["file.ext.uue",expr] exports an expression to a uuencoded .ext file.
- Import["file.uue"] decodes a uuencoded file and imports its contents as an expression, automatically inferring the format from the file contents.
- The import format can be given explicitly with Import["file",{"UUE","format"}].
- Import["file.ext.uue",elem] imports the specified element from a uuencoded .ext file.
- Import["file.ext.uue",{elem,suba,subb,…}] imports a subelement.
- Import["file.ext.uue",{{elem1,elem2,…}}] imports multiple elements.
- The import format and file encoding can be explicitly specified with Import["file",{"UUE","format",elems1,elems2,…}].
- Export["file.ext.uue",expr,elem] creates a uuencoded .ext file by treating expr as specifying element elem.
- Export["file.ext.uue",{expr1,expr2,…},{{elem1,elem2,…}}] treats each expri as specifying the corresponding elemi.
- Export["file.ext.uue",expr,opt1->val1,…] exports expr with the specified option elements taken to have the specified values.
- Export["file.ext.uue",{elem1->expr1,elem2->expr2,…},"Rules"] uses rules to specify the elements to be exported.
- The export format and file encoding can be explicitly specified with Export["file",exprs,{"UUE","format",elems}].
- See the following reference pages for full general information:
-
Import, Export import from or export to a file CloudImport, CloudExport import from or export to a cloud object ImportString, ExportString import from or export to a string ImportByteArray, ExportByteArray import from or export to a byte array
Import Elements
- General Import elements:
-
"Elements" list of elements and options available in this file "Summary" summary of the file "Rules" list of rules for all available elements
Examples
Basic Examples (2)
This applies uuencoding to text:
ExportString["One fish two fish", {"UUE", "Text"}]ImportString[%, "UUE"]The Wolfram Language can uuencode arbitrary expressions:
ExportString[(a + Sin[x]) / 12, "UUE"]ImportString[%, "UUE"]Related Guides
History
Introduced in 2007 (6.0)