diff options
| author | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2021-04-23 02:18:56 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-23 02:18:56 -0500 |
| commit | 66f2369af2c4e15ef3eb605f2eefcbc10b576455 (patch) | |
| tree | a2fac1555d37dc2af7e879ab1a565485dc12a173 /src/path_functions.cpp | |
| parent | 93c8befeceae051778fce16fc5c1bfef94cb5562 (diff) | |
Fix Cyrillic characters not being read correctly from QSettings inis (#535)
* set ini codecs to utf8
* fix color config reading in Latin1 rather than Utf8
Diffstat (limited to 'src/path_functions.cpp')
| -rw-r--r-- | src/path_functions.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/path_functions.cpp b/src/path_functions.cpp index 79851c11..dbf1cc40 100644 --- a/src/path_functions.cpp +++ b/src/path_functions.cpp @@ -173,6 +173,7 @@ QString AOApplication::get_config_value(QString p_identifier, QString p_config, p = get_case_sensitive_path(p); if (file_exists(p)) { QSettings settings(p, QSettings::IniFormat); + settings.setIniCodec("UTF-8"); QVariant value = settings.value(p_identifier); if (value.type() == QVariant::StringList) { // qDebug() << "got" << p << "is a string list, returning" << value.toStringList().join(","); |
