Version: unspecified (using KDE 4.6.0) OS: Linux kdialog --multiple --getopenfilename will sometimes substitute spaces with %20 when the filenames contain the # characters. Reproducible: Always Steps to Reproduce: run: touch "Name #1" touch "Name #2" kdialog --multiple --getopenfilename . select the two files Actual Results: the output is: /home/tholin/temp/Name%20#1 /home/tholin/temp/Name%20#2 Expected Results: the output should be: /home/tholin/temp/Name #1 /home/tholin/temp/Name #2 This only happens when the filenames contain the # character and --multiple flag is used. The output is normal if I only select one of the files. The problem might be related to bug 185433
*** Bug 335922 has been marked as a duplicate of this bug. ***
*** Bug 280796 has been marked as a duplicate of this bug. ***
This used to be a problem in kdelibs' KFileWidget due to its conversions between KUrl's and QString's in slotOk(). KFileWidget uses QUrl directly in KF5, so this is no longer an issue. I've tried kdialog here with inputs such as "foo bar.txt" (which used to become "foo%20 bar.txt") and "foo #1.txt" and everything works as expected.