[Bug 68744] Problems with accented characters in file names

Andras Mantia amantia at freemail.hu
Mon Dec 1 15:41:42 GMT 2003


CC-ing to kde-core-devel, maybe somebody there has an idea about it:

I've looked a little into the code, and the problem lies somewhere in 
KURIFilter.
In KonqMainWindow::openFilteredURL() there is the below lines:
    KURL filteredURL = KonqMisc::konqFilteredURL( this, url, m_currentDir );
    kdDebug(1202) << "_url " << _url << " filtered into " << 
filteredURL.prettyURL() << endl;

If url contains an accented char (eg. it is file:/home/user/á.html) the debug 
output is:
konqueror: _url file:/home/andris/%E1.html filtered into

so filteredURL is empty. filteredURL in this case is obtained by:
   KURIFilterData data = _url;
   if( !_path.isEmpty() )
      data.setAbsolutePath(_path);
   KURIFilter::self()->filterURI( data );
   filteredURL = data.uri().url();

If I add
    filter( "á.html");
    filter( "%E1.html");

to the kdelibs/kio/tests/kurifiltertest.cpp

I get:
kurifiltertest: Filtering: ??.html
kurifiltertest: Here, minicli would run KRun on http://
kurifiltertest: -----
kurifiltertest: Filtering: %E1.html
kurifiltertest: Here, minicli would run KRun on http://


Any idea, solution?

Andras




More information about the kde-core-devel mailing list