QTIFW readFile(string filePath, string codecName), what codec?

90 Views Asked by At

On QTIFW I see there is a function to read a file

string readFile(string filePath, string codecName)

but what codec means? How to use this function?

https://doc.qt.io/qtinstallerframework/scripting-installer.html#readFile-method

1

There are 1 best solutions below

0
Wassim On

Given the source code here (l.801), it seems related to file encoding. Since it is implemented using a QTextCodec, I'm assuming the valid values are the ones listed there.