var encoding: string = "utf-8"
Encodes a streamed string into bytes.
The incoming string is encoded and outputted into raw bytes. If some characters cannot
be encoded into the specified
encoding, it is turned into coded XML character (
The supported encodings and possible values for
encoding are defined in
the Encoding Standard.