with-encoded-output ( encoding quot -- )
Factor handbook » Input and output » I/O encodings

Prev:re-decode ( stream encoding -- newstream )
Next:with-decoded-input ( encoding quot -- )


Vocabulary
io.encodings

Inputs
encodingan encoding descriptor
quota quotation


Outputs
None

Word description
Creates a new encoder with the given encoding descriptor and calls the quotation using this encoder. The original encoder object is restored after the quotation returns and the stream is kept open for future output operations.

Definition