From c319ffd92918f43a2bf21a531b7d523bdc064cf4 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 17 Jan 2012 02:09:05 -0600 Subject: [PATCH] Fix utf8 encoding for webdav directories Thanks to Thorsten Glaser for the patch! (cherry picked from commit e607cfe6113c9cf3d4b64814985d25e5ee711a8c) --- kioslave/http/http.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kioslave/http/http.cc b/kioslave/http/http.cc index 483293025..30ee723b1 100644 --- a/kioslave/http/http.cc +++ b/kioslave/http/http.cc @@ -45,6 +45,7 @@ #include #include #include +#include #include #include @@ -750,9 +751,14 @@ void HTTPProtocol::davStatList( const KURL& url, bool stat ) entry.clear(); TQString urlStr = href.text(); +#if 0 int encoding = remoteEncoding()->encodingMib(); if ((encoding == 106) && (!KStringHandler::isUtf8(KURL::decode_string(urlStr, 4).latin1()))) encoding = 4; // Use latin1 if the file is not actually utf-8 +#else + TQUrl::decode(urlStr); + int encoding = 106; +#endif KURL thisURL ( urlStr, encoding );