|This article is being maintained as archived information. Encoding is handled without any user involvement by most e-mail applications and providers today.|
WinZip can open and extract UUencoded, XXencoded, BinHex, and MIME files (base64, plain/text, and quoted-printable), and can UUencode files. This section explains the need for these features and abilities, includes instructions for using them, and shows how they can bring a whole new dimension to your e-mail operations.
UUencoded, XXencoded, BinHex, and MIME files
- Sending Files using Internet Mail
- The Why behind UUencoding and Other Schemes
- Receiving and Preparing Files for Decoding
- Decoding Files using WinZip
- UUencoding a File using WinZip
- Mailing a UUencoded File
- Hints, Tips, & Troubleshooting
If you have a direct connection to the Internet, you may already be using an e-mail program that allows you to attach files to messages. However, many e-mail programs cannot easily transfer files to Internet addresses. WinZip can enable you to send and receive files using nearly any e-mail program.
Note: If your e-mail program does have the ability to transfer files, consider using WinZip to compress them before transfer -- it will usually take far less time since the file will be smaller.
Some Internet protocols were not designed to carry binary (program and other non-text files) files. They are only able to transfer messages made up of conventional text (printable ASCII) characters. In order to get around that limitation, UUencode and other methods were created.
These solutions all perform the same basic operation: they encode the non-transferable binary file into ASCII characters that the e-mail system can handle. The person receiving the message can then decode the strings of characters to recreate the original file. Perhaps you have seen one of these apparently unintelligible messages; here's an example:
begin 666 encoded.txt
WinZip can easily open and extract UUencoded, XXencoded, BinHex, and MIME files (base64, plain/text, and quoted-printable) that have been sent to you, and create UUencoded files for you to send.
Receiving and Preparing Files for Decoding
The message you receive with an encoded file will need to be prepared for the simple WinZip decoding operation. The steps you take will depend on the e-mail program you are using.
Be aware that some e-mail programs may crash or cut off parts of unusually large messages, so saving them as a file without opening them is the preferred method.
Your e-mail program may save a message attachment as an external file in a folder designated to receive them. In that case, it may automatically be named; you may wish to rename it, using a .UUE extension, for maximum convenience.
Sometimes you may receive multiple messages, where a file is split up into more than one message because of size limitations. You will need to use a text editor or the DOS COPY file command to paste the files together into one large file, and save it as a text file with a .UUE extension.
Decoding Files using WinZip
You do not need to worry if the file being sent is UUencoded, XXencoded, BinHex, or a MIME file (base64, plain/text, and quoted-printable). WinZip will detect the method being used and automatically decode it.
As is the case with Zip files, WinZip offers more than one way to open encoded files. For example:
- Double click on the file with the .UUE extension.
- WinZip will execute and decode the file. If it is a Zip file, it will offer to open it. If it has not been compressed, it will be shown in the usual manner.
- Use WinZip in the regular manner to Extract the file to your folder of choice.
Note: You can also open a file using WinZip's Open toolbar button, or drag and drop a file into WinZip, regardless of the file's extension.
UUencoding a File using WinZip
WinZip UUencodes Zip files for mailing, so you must choose and open an existing Zip file to encode or create a new one.
- If the file is already archived as a Zip file, open it in WinZip using your favorite method.
- If the file(s) you wish to send is not already archived, use WinZip to create a Zip file, and leave the program open for the next step.
- Click on the Actions menu item, and choose UUencode.
A UUencoded file has been created from your Zip file. For example, you will find a TESTFILE.UUE file in the same folder along with your original TESTFILE.ZIP.
Mailing a UUencoded File
How you include a UUencoded file in a message will depend on your e-mail program. Some e-mail programs require you to attach the .UUE file to the mail message. Other e-mail programs require you to open the .UUE file you have created using a text editor, copy the entire contents, or portions of it, to the Windows clipboard, and paste it into your open e-mail message. Further information on handling large files is included in the next section, Hints, Tips, & Troubleshooting.
Hints, Tips, & Troubleshooting
WinZip makes decoding these file attachments very convenient. Here are some hints to make the road even smoother:
The most common problems we encounter with files that cannot be decoded are incomplete data and missing header information. The integrity of the message is critical, and the header must be intact for decoding. We have included short examples of each of the following encoding formats. You may find them helpful for comparison purposes with messages you receive, to confirm that they appear properly encoded and are not missing header and closing data. Examples are included below that you may review.
Multi-Part Encoded Files must be combined before they can be processed by WinZip. If you encounter encoded data spread across multiple files, you can either combine the parts using a text editor, and then open them with WinZip, or you can use another program, like the UUDeview package from Frank Pilhofer. (WinZip's decoding subroutines are based on the UUDeview package.) The original UUDeview is a text mode command line driven program, or you can download a Windows interface by Michael Newcomb. These free programs are available from the Internet addresses http://www.fpx.de/fp/Software/UUDeview (Germany) and http://www.miken.com/uud (USA), respectively.
Further information about encoding files can be found in many places on the Internet. A good place to start is the "Introduction to Decoding" article on the UUDeview Home Page. The MIME specification is defined in RFC 1521, and is widely available on the Internet.
The following are examples of various encoding schemes:
begin 666 encoded.txt M5&5S="$-"@T*1V5N=&QE(%)E861E<CH-"@T*5&AI<R!
begin 666 encoded.txt hJ4JnR02B0Uo8FqJiR4lZ637ZMKFZQXcB0Uo8J4VdQm-
d OPaQURLBdPaQUJqZiKaZk9Uo81Ed3PadjSG2+ + end
--- Content-Type: application/octet-stream; name="encoded.txt"
Content-Transfer-Encoding: base64 Content-Disposition: inline;
filename="encoded.txt" Content-MD5: V8ttTjZgvmMkzwVFKr5Olw== VGVzdCENCg0KR2VudGxlIFJlYWRlcjoNCg0KVGhpcyBpcyBub3RoaW5nIG1vcmU