Creates and returns a new text encoder for the given encoding. When encoding is utf-8 then the built-in text encoder (which only supports utf-8) is returned. Otherwise our own implementation is returned for this specific encoding.
The encoding label. Defaults to "utf-8".
The created text encoder.
Creates and returns a new text encoder for the given encoding. When encoding is utf-8 then the built-in text encoder (which only supports utf-8) is returned. Otherwise our own implementation is returned for this specific encoding.