[Bug 68744] Problems with accented characters in file names
    David Faure 
    faure at kde.org
       
    Tue Dec  2 11:32:20 GMT 2003
    
    
  
On Tuesday 02 December 2003 10:14, Andras Mantia wrote:
> Bingo! With 1.39 there is no problem at all. Fixed #68744 and the test for
> file:/home/andris/%E1.html runs. For the others the result are the same.
date: 2003/09/20 19:29:52;  author: malte;  state: Exp;  lines: +2 -1
Encode the user's search query in utf-8 when passing it to the URI filter.
 void KURIFilterData::init( const QString& url )
 {
     m_iType = KURIFilterData::UNKNOWN;
-    m_pURI = url;
+    m_pURI = KURL( url, 106 /* utf-8 */ );
This looks very wrong indeed, for any usage of KURIFilter that is about the local filesystem.
I guess Malte was trying to make gg:foo encode "foo" as utf8.
But now that we stored the typedString as is (in a QString), what about doing this
in the ikws filter only, once we know that it's going to be a query?
-- 
David FAURE, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
    
    
More information about the kde-core-devel
mailing list