mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Preserve UTF-8 encoding when reading namedsearches.xml config file (#3145)
Fixes #3143
This commit is contained in:
committed by
GitHub
parent
e68afa6aea
commit
39b01c2649
@@ -51,10 +51,8 @@ static QString protect(const QString string)
|
||||
// Un-Escape special characters (JSON compliance)
|
||||
static QString unprotect(const QString string)
|
||||
{
|
||||
QString string2 = QString::fromLocal8Bit(string.toLatin1().data());
|
||||
|
||||
// this is a quoted string
|
||||
QString s = string2.mid(1,string2.length()-2);
|
||||
QString s = string.mid(1,string.length()-2);
|
||||
|
||||
// now un-escape the control characters
|
||||
s.replace("\\t", "\t"); // tab
|
||||
|
||||
Reference in New Issue
Block a user