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 answers

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.