From 0fa6a5e570c9d76621781daf38e75b512a12d7cc Mon Sep 17 00:00:00 2001 From: Daniel Albers Date: Wed, 26 Nov 2008 22:36:38 +0100 Subject: [PATCH] hand QUrl a UTF-8 string instead of ASCII --- src/qtui/chatitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qtui/chatitem.cpp b/src/qtui/chatitem.cpp index 433d8d62..e3e9ad74 100644 --- a/src/qtui/chatitem.cpp +++ b/src/qtui/chatitem.cpp @@ -507,7 +507,7 @@ void ContentsChatItem::handleClick(const QPointF &pos, ChatScene::ClickMode clic case Clickable::Url: if(!str.contains("://")) str = "http://" + str; - QDesktopServices::openUrl(QUrl::fromEncoded(str.toAscii())); + QDesktopServices::openUrl(QUrl::fromEncoded(str.toUtf8(), QUrl::TolerantMode)); break; case Clickable::Channel: // TODO join or whatever... -- 2.20.1