From: Daniel Albers Date: Wed, 26 Nov 2008 21:36:38 +0000 (+0100) Subject: hand QUrl a UTF-8 string instead of ASCII X-Git-Tag: 0.4.0~404 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=0fa6a5e570c9d76621781daf38e75b512a12d7cc;ds=sidebyside hand QUrl a UTF-8 string instead of ASCII --- 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...