From b0d0a4ee186dab9f87a7475c36f6d13ba8649a28 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Wed, 5 Jul 2023 05:47:03 +0300 Subject: [PATCH] kio: do not convert the element attribute to latin1 in KBookmark::url() that will only convert it back to QString in the KUrl constructor but it will not be from UTF-8 bytes - the attribute string is converted to latin1, duh Signed-off-by: Ivailo Monev --- kio/bookmarks/kbookmark.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kio/bookmarks/kbookmark.cc b/kio/bookmarks/kbookmark.cc index d6623127..c85657c7 100644 --- a/kio/bookmarks/kbookmark.cc +++ b/kio/bookmarks/kbookmark.cc @@ -319,7 +319,7 @@ void KBookmark::setFullText(const QString &fullText) KUrl KBookmark::url() const { - return KUrl(element.attribute("href").toLatin1()); // Decodes it from utf8 + return KUrl(element.attribute("href")); // Decodes it from utf8 } void KBookmark::setUrl(const KUrl &url)