Skip to content
Permalink
Browse files

Preserve UTF-8 encoding when reading namedsearches.xml config file (#…

…3145)

Fixes #3143
  • Loading branch information...
amtriathlon committed Aug 20, 2019
1 parent e68afa6 commit 39b01c2649e21546a3acebb77fb1ecbe8ba77cc2
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/Core/NamedSearch.cpp
@@ -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

0 comments on commit 39b01c2

Please sign in to comment.
You can’t perform that action at this time.