Switch to unified view

a/src/qtgui/restable.cpp b/src/qtgui/restable.cpp
...
...
373
373
374
    string colname = m_fields[index.column()];
374
    string colname = m_fields[index.column()];
375
375
376
    string data = m_getters[index.column()](colname, doc);
376
    string data = m_getters[index.column()](colname, doc);
377
377
378
#ifndef _WIN32
378
    // Special case url, because it may not be utf-8. URL-encode in this case.
379
    // Special case url, because it may not be utf-8. URL-encode in this case.
380
    // Not on windows, where we always read the paths as Unicode.
379
    if (!colname.compare("url")) {
381
    if (!colname.compare("url")) {
380
        int ecnt;
382
        int ecnt;
381
        string data1;
383
        string data1;
382
        if (!transcode(data, data1, "UTF-8", "UTF-8", &ecnt) || ecnt > 0) {
384
        if (!transcode(data, data1, "UTF-8", "UTF-8", &ecnt) || ecnt > 0) {
383
            data = url_encode(data);
385
            data = url_encode(data);
384
        }
386
        }
385
    }
387
    }
388
#endif
386
389
387
    list<string> lr;
390
    list<string> lr;
388
    g_hiliter.plaintorich(data, lr, m_hdata);
391
    g_hiliter.plaintorich(data, lr, m_hdata);
389
    return QString::fromUtf8(lr.front().c_str());
392
    return QString::fromUtf8(lr.front().c_str());
390
}
393
}