From e607cfe6113c9cf3d4b64814985d25e5ee711a8c Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 17 Jan 2012 02:09:05 -0600 Subject: Fix utf8 encoding for webdav directories Thanks to Thorsten Glaser for the patch! --- kioslave/http/http.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'kioslave') diff --git a/kioslave/http/http.cc b/kioslave/http/http.cc index a1495d78b..16b785d03 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 ); -- cgit v1.2.1