How to load hunspell dictionary in Windows path with non-ASCII characters?
问题 How to load hunspell dictionary in Windows path with non-ASCII characters? Hunspell manual suggests: In WIN32 environment, use UTF-8 encoded paths started with the long path prefix \?\ to handle system-independent character encoding and very long path names, too. So I have code to do the following: QString spell_aff = QStringLiteral(R"(\\?\%1%2.aff)").arg(path, newDict); QString spell_dic = QStringLiteral(R"(\\?\%1%2.dic)").arg(path, newDict); // while normally not a an issue, you can't mix