PythonQt.QtCore.QTextDecoder · declarations 001
Back to PythonQt.QtCore.QTextDecoder
hasFailure
hasFailure() -> bool
X.hasFailure() -> bool
Upstream PySide2 reference signatures (binding differences may apply):
hasFailure(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtextdecoder.html#hasFailure
toUnicode
toUnicode(ba: Any) -> str
X.toUnicode(ba) -> str
Supplemental documentation: Qt 5 reference:
QString QTextDecoder::toUnicode(const char *chars, int len)
Converts the first len bytes in chars to Unicode, returning the result.
If not all characters are used (e.g. if only part of a multi-byte encoding is at the end of the characters), the decoder remembers enough state to continue with the next call to this function.
QString QTextDecoder::toUnicode(const QByteArray \&ba)
This is an overloaded function.
Converts the bytes in the byte array specified by ba to Unicode and returns the result.
void QTextDecoder::toUnicode(QString *target, const char *chars, int len)
This is an overloaded function.
The converted string is returned in target.
Upstream PySide2 reference signatures (binding differences may apply):
toUnicode(self, ba: PySide2.QtCore.QByteArray) -> str
Source: https://doc.qt.io/archives/qt-5.15/qtextdecoder.html#toUnicode