| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
UUEncodes a character string.
HB_UUEncode( <cString>, <nBytes> ) --> cUUEncoded
The function returns a UUEncoded character string.
HB_UUEncode() uses the UUEncode algorithm for encoding a character string.
Pass the resulting string to function HB_UUDecode() to obtain the original data.
| See also: | HB_UUDecode(), HB_UUDecodeFile(), HB_UUEncodeFile() |
| Category: | Encoding/Decoding , xHarbour extensions |
| Source: | tip\encoding\UUEncode.c |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
// The example outlines UUEncoding and decoding.
PROCEDURE Main
LOCAL cString := "xHarbour"
LOCAL cUUEncode := HB_UUEncode( cString, Len(cString ) )
? cUUEncode // result: (>$AA<F)O=7(`rg
? HB_UUDecode( cUUEncode ) // result: xHarbour
RETURN
http://www.xHarbour.com