QTextEncoder

PyQt5.QtCore.QTextEncoder

Description

The QTextEncoder class provides a state-based encoder.

A text encoder converts text from Unicode into an encoded text format using a specific codec.

The encoder converts Unicode into another format, remembering any state that is required between calls.

Methods

__init__(QTextCodec)

TODO


__init__(QTextCodec, Union[ConversionFlags, ConversionFlag])

Constructs a text encoder for the given codec and conversion flags.


fromUnicode(str) → QByteArray

Converts the Unicode string str into an encoded QByteArray.