Ns uuencode

From AOLserver Wiki
Jump to: navigation, search

Man page: http://aolserver.com/docs/tcl/ns_uuencode.html


NAME

ns_uuencode - Binary-to-text encoding using "htuu" encoding

SYNOPSYS

ns_uuencode string

DESCRIPTION

This command performs a binary-to-text encoding on string. There is an arbitrary limit of 48 bytes for the input string. The encoded string will be approximately 33% longer than the original.
NOTE: This is HTTP-style uuencoding/uudecoding which is sometimes called "htuu" (see RFC 1113, 4.3.2.4 Step 4 Printable Encoding). It is not compatible with the format used by the Unix uuencode/uudecode commands, nor is it base-64 encoding.
For base-64 encoding, consider using the base64 Tcl package in tcllib.

EXAMPLE

   % ns_uuencode "Test string"
   VGVzdCBzdHJpbmc=

SEE ALSO

ns_uudecode, tcllib base64 [1]

Category Documentation - Category Core Tcl API