#include #include #include int main() { qDebug() << QT_VERSION_STR; for(int i = 1; i <= 16; i++) { if (i > 10 && i < 13) //Qt officially supports ISO 8859-1 to 10 and ISO 8859-13 to 16 continue; const QString codecName = QStringLiteral("ISO-8859-%1").arg(i); qDebug() << codecName << QTextCodec::codecForName(codecName.toLatin1()); } }