QTextDecoder

class PyQt5.QtCore.QTextDecoder

C++ documentation