diff --git a/retroshare-gui/src/gui/common/RsCollectionFile.cpp b/retroshare-gui/src/gui/common/RsCollectionFile.cpp index 1a2e1b42e..d5f9413c4 100644 --- a/retroshare-gui/src/gui/common/RsCollectionFile.cpp +++ b/retroshare-gui/src/gui/common/RsCollectionFile.cpp @@ -184,6 +184,7 @@ bool RsCollectionFile::save(const QString& filename) const } QTextStream stream(&file) ; + stream.setCodec("UTF-8") ; stream << _xml_doc.toString() ; diff --git a/retroshare-gui/src/gui/common/RsUrlHandler.cpp b/retroshare-gui/src/gui/common/RsUrlHandler.cpp index 5b200b859..47b757446 100644 --- a/retroshare-gui/src/gui/common/RsUrlHandler.cpp +++ b/retroshare-gui/src/gui/common/RsUrlHandler.cpp @@ -29,9 +29,9 @@ bool RsUrlHandler::openUrl(const QUrl& url) { if(url.scheme() == QString("file") && url.toLocalFile().endsWith("."+RsCollectionFile::ExtensionString)) { - RsCollectionFile Collection; - if (Collection.load(url.toLocalFile().toUtf8().constData())) { - Collection.downloadFiles() ; + try + { + RsCollectionFile(url.toLocalFile()).downloadFiles() ; } return true; }