Encoding and decoding strings
Factor handbook » Input and output » I/O encodings

Prev:Manually constructing an encoded stream
Next:Encoding protocol


Strings can be encoded or decoded to and from byte arrays through an encoding by passing Encoding descriptors to the following words:
encode ( string encoding -- byte-array )

decode ( byte-array encoding -- string )