Bug 337642

Summary: Putting a folder with special characters in the Places panel creates encoding errors
Product: [Frameworks and Libraries] frameworks-kio Reporter: Romário Rios <luizromario>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: normal CC: frank78ac, kdelibs-bugs, simonandric5
Priority: NOR    
Version: 5.0.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: This is when I access the folder normally
This is when I do it via the Folder panel

Description Romário Rios 2014-07-20 20:17:57 UTC
Created attachment 87840 [details]
This is when I access the folder normally

There's this folder in my home folder called "Romário". I can access it normally from the home directory, but, if I put it inside the Places panel, its path turns to "Rom�rio". Screenshots attached, illustrating the bug.
Comment 1 Romário Rios 2014-07-20 20:18:54 UTC
Created attachment 87841 [details]
This is when I do it via the Folder panel
Comment 2 Frank Reininghaus 2014-08-10 10:20:08 UTC
Thanks for the bug report.

How exactly do you create the folder? If I create it in a shell with mkdir, then it shows up in the view as a file of "Unknown" type with the name "Rom�rio". But the same happens in the file dialog, so it's not a Dolphin issue (maybe related to https://bugs.kde.org/show_bug.cgi?id=165044 ?).

Strangely enough, the "Unknown file" turned into an accessible folder after some time, but you're right that creating a Places Panel entry and trying to open it results in an error message.

It doesn't work in the file dialog of, e.g., KWrite either though, so I think it might not be a Dolphin bug. I hope that KIO is the right product. Unfortunately, I'm not really familiar with encoding issues myself.
Comment 3 Maarten De Meyer 2014-09-11 16:11:16 UTC
Git commit 116ed0d46d693a5ea54ca0d73f2ef57a64db4fe8 by Maarten De Meyer.
Committed on 11/09/2014 at 16:04.
Pushed by demeyer into branch 'master'.

Fix encoding issue in KIO places dialog

toLatin1() removes non Utf8 characters.
REVIEW: 120131

M  +1    -1    src/kbookmark.cpp

http://commits.kde.org/kbookmarks/116ed0d46d693a5ea54ca0d73f2ef57a64db4fe8