Version: (using KDE 4.2.2) Compiler: gcc 4.3 OS: Linux Installed from: Compiled From Sources The application is using Phonon to access an audio file whose file name is in the Greek alphabet. This file name is shown correctly in the debug output for KIO::Slave::createSlave(), as below. When KIO errors due to not finding the file, it reports the file name using a Latin1 encoding instead of UTF8 or whatever. The debug output below shows this, but more importantly the error text which is emitted by KIO::SlaveInterface::dispatch() contains the file name in the wrong encoding too. As a result, error messages displayed to the user by the application are also wrong. kalarm(9755)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///home/fanisatt/Music/ΣΥΝΘΕΣΕΙΣ_MOY/LAST/Swallows of April_fin.wav") kalarm(9755)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on "local:/tmp/ksocket-david/kalarmTJ9755.slave-socket" kalarm(9755)/kio (KIOJob) KIO::SlaveInterface::dispatch: error 111 "/home/fanisatt/Music/ΣΥÎÎÎΣÎÎΣ_MOY/LAST/Swallows of April_fin.wav"
Î = CE £ = A3 .. Which decodes to U+03A3 GREEK CAPITAL LETTER SIGMA.
.. What's your locale?
Never mind --- spoke to thiago. Problem is that kio_file passes a QByteArray with encoded name to QString-taking method, and QString(QByteArray) by default does latin1.
Is this still applicable in KDE 4.6 or has the issue been resolved ?
(In reply to comment #3) > Never mind --- spoke to thiago. Problem is that kio_file passes a QByteArray > with encoded name to QString-taking method, and QString(QByteArray) by default > does latin1. There is nowhere where I see that happening in the current version of kio_file. That is I do not see a direct QByteArray to QString conversion. Either QFile::decodeName or KUrl's toLocalFile() is used to obtain the filename information sent in error messages. This is especially true for the error, ERR_DOES_NOT_EXIST (111), shown in the original report's debug output snippet.
As far as I can tell, this doesn't happen any more. I haven't managed to reproduce any of the KIO debug messages, but the error message returned by Phonon::MediaObject contains the correctly encoded file name, which is then displayed correctly to the user.
*** Bug 240427 has been marked as a duplicate of this bug. ***
*** Bug 185690 has been marked as a duplicate of this bug. ***
*** Bug 275289 has been marked as a duplicate of this bug. ***