From kde-core-devel Tue Jan 24 20:33:57 2006 From: David Faure Date: Tue, 24 Jan 2006 20:33:57 +0000 To: kde-core-devel Subject: Re: KConfigBase & QUrls Message-Id: <200601242133.58607.faure () kde ! org> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=113813486622833 On Monday 23 January 2006 08:57, Thomas Braxton wrote: > This patch implements QUrl in readEntry/writeEntry. Good idea, but it should use toEncoded/fromEncoded instead, (and as others said, this is unrelated to path entries). QUrl("...") and QUrl::toString are useless for our purposes. QUrl("file:///foo%23bar").toString() is "file:///foo#bar", which gives a fragment of 'bar' when passed back to a QUrl. So, better use toEncoded/fromEncoded; or wait for my QUrl-based KURL which is coming as soon as one last QUrl bug is fixed (returning invalid urls unchanged instead of returning empty, useful for error messages). -- David Faure, faure@kde.org, sponsored by Trolltech to work on KDE, Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).