Bug 68744 - Problems with accented characters in file names
Summary: Problems with accented characters in file names
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: webarchiverplugin (show other bugs)
Version: SVN
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Malte Starostik
URL:
Keywords:
: 72795 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-21 17:59 UTC by András Manţia
Modified: 2004-01-17 04:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description András Manţia 2003-11-21 17:59:28 UTC
Go to http://www.3szek.ro->Archive Web Page. Creates: 
Háromszék_-_Független_napilap,_Sepsiszentgyörgy.war. 
Try to open it. Error: The file or folder file:/home/andris/H
Comment 1 Thiago Macieira 2003-11-22 00:32:56 UTC
The above site is offline, so I can't test. The problem is, however, typical of bad filename encoding. See my posts to kde-core-devel for more information on the issue.

Now, Bugzilla might have encoded your message a bit differently. Which of the two cases has an á (U+00E1) as the second character (after the H)?
Comment 2 András Manţia 2003-11-22 11:35:14 UTC
Subject: Re:  Problems with accented characters in file names

http://www.3szek.ro/ is online now. Must be a temporary problem for you.
The text should be: 
Háromszék - Független napilap, Sepsiszentgyörgy

The other problems are with ű, Ű, ő, Ő. I don't know their unicode 
representation... 

Andras

Comment 3 Thiago Macieira 2003-11-23 14:09:32 UTC
Sorry, I could not reproduce. The page got archived, even though the contents are completely screwed up in the archive, codification-wise.
Comment 4 András Manţia 2003-11-23 15:14:29 UTC
Subject: Re:  Problems with accented characters in file names

Well, I can still reproduce it. But the error occures only if I open the .war 
file with Location-->Open. Furthermore if I have an 
Comment 5 Thiago Macieira 2003-11-23 21:11:40 UTC
What is your $LANG and do you have KDE_UTF8_FILENAMES?
Comment 6 András Manţia 2003-11-24 10:34:45 UTC
Subject: Re:  Problems with accented characters in file names

LANG=en_US
KDE_UTF8_FILENAME is not set.

Comment 7 Thiago Macieira 2003-11-24 14:57:16 UTC
When you click on that á.html, what does the Konqueror location bar show you?
Comment 8 András Manţia 2003-11-24 15:16:11 UTC
Subject: Re:  Problems with accented characters in file names

It shows correctly: file:/home/andris/
Comment 9 Thiago Macieira 2003-12-01 05:31:49 UTC
I can't reproduce your problem, but I am in an UTF-8 locale.
Comment 10 András Manţia 2003-12-01 16:43:09 UTC
Subject: Re:  Problems with accented characters in file names

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/
Comment 11 David Faure 2003-12-06 17:36:24 UTC
Subject: kdelibs/kio/kio

CVS commit by faure: 

Revert 1.40, it broke for filenames, see kde-core-devel.
If someone wants to fix google queries he should do so in the ikws filter.
CCMAIL: 68744-done@bugs.kde.org, malte@kde.org


  M +1 -2      kurifilter.cpp   1.41


--- kdelibs/kio/kio/kurifilter.cpp  #1.40:1.41
@@ -27,5 +27,4 @@
 #include <kstaticdeleter.h>
 #include <kparts/componentfactory.h>
-#include <qtextcodec.h>
 
 #include "kurifilter.h"
@@ -91,5 +90,5 @@ void KURIFilterData::init( const QString
 {
     m_iType = KURIFilterData::UNKNOWN;
-    m_pURI = KURL( url, 106 /* utf-8 */ );
+    m_pURI = url;
     m_strErrMsg = QString::null;
     m_strIconName = QString::null;


Comment 12 Thiago Macieira 2004-01-17 04:12:48 UTC
*** Bug 72795 has been marked as a duplicate of this bug. ***