From 12dc7d0a66f61da5b30713f5be6de51dfa563b19 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Tue, 29 Jan 2019 21:01:51 +0100 Subject: [PATCH] Windows: restable: never encode urls, they are utf-8 --- src/qtgui/restable.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qtgui/restable.cpp b/src/qtgui/restable.cpp index 5dbcde96..f049e6f1 100644 --- a/src/qtgui/restable.cpp +++ b/src/qtgui/restable.cpp @@ -375,7 +375,9 @@ QVariant RecollModel::data(const QModelIndex& index, int role) const string data = m_getters[index.column()](colname, doc); +#ifndef _WIN32 // Special case url, because it may not be utf-8. URL-encode in this case. + // Not on windows, where we always read the paths as Unicode. if (!colname.compare("url")) { int ecnt; string data1; @@ -383,6 +385,7 @@ QVariant RecollModel::data(const QModelIndex& index, int role) const data = url_encode(data); } } +#endif list lr; g_hiliter.plaintorich(data, lr, m_hdata);