The PySide.QtCore.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.
Constructs a text encoder for the given codec .
|Parameters:||str – unicode|
Converts the Unicode string str into an encoded PySide.QtCore.QByteArray .
Determines whether the eecoder encountered a failure while decoding the input. If an error was encountered, the produced result is undefined, and gets converted as according to the conversion flags.