string = "utf-8"
bool = false
Encodes streamed text with specified encoding.
The incoming string is encoded and outputted into raw bytes. If some characters cannot
be encoded into the specified
encoding, the behavior is set by
false: the character is dropped;
true: the character is replaced with coded XML character (such as
The supported encodings and possible values for
encoding are defined in
the Encoding Standard.
encoding is not recognized, UTF-8 is assumed instead.