mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -05:00
2 bug fixes (by AsamK) to make rscollection files compatible with utf8
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4701 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0d118c7033
commit
e62008d493
@ -184,6 +184,7 @@ bool RsCollectionFile::save(const QString& filename) const
|
||||
}
|
||||
|
||||
QTextStream stream(&file) ;
|
||||
stream.setCodec("UTF-8") ;
|
||||
|
||||
stream << _xml_doc.toString() ;
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user