next up previous
Next: Base64 encoding Up: Encoding Formats Previous: Example

Xxencoding

The xxencoding method was conceived shortly after the initial use of uuencoding. The first implementations of uuencoding did not realize the potential problem of using the space character for encoding data. Before this mistake was workarounded with the special case, another author used a different charset for encoding, composed of characters available on any system.


Table: Encoding Table for Xxencoding
Data Value +0 +1 +2 +3 +4 +5 +6 +7
0 + - 0 1 2 3 4 5
8 6 7 8 9 A B C D
16 E F G H I J K L
24 M N O P Q R S T
32 U V W X Y Z a b
40 c d e f g h i j
48 k l m n o p q r
56 s t u v w x y z


Xxencoding is absolutely identical to uuencoding with the difference of using a different mapping of data values into printable characters (table [*]). Instead of `M', a normal-sized xxencoded line is prefixed by `h' (note that `h' encodes 45, just as `M' in uuencoding). The empty data line at the end consists of a single `+' character. Our sample file looks like the following:

begin 600 test.txt
hJ4VdQm-dQm-V65FZQrEUNaZgNG-aPr6UOKlgRLBoQa3oOKtb65FcNG-qML7d
hPrJn0aJiMqxYOKtb64pZR4VjN5Ai62lZR0Rn64pVOqIUR4VdQm-oNLVo64lj
hPaRZQW-oO43i0XIr647tR4Jn65Fj65RmML+UP4ZiNLAURqZoO0-0MLBZBXEU
ZN43oMGkUR4xj9Ud5QaJZR4ZiNrAg62NmMKtf63-dP4VjNaJm0U++
+
end


next up previous
Next: Base64 encoding Up: Encoding Formats Previous: Example
2004-07-27