diff --git a/Linphone/model/core/CoreModel.cpp b/Linphone/model/core/CoreModel.cpp index a79c097b..0be874ac 100644 --- a/Linphone/model/core/CoreModel.cpp +++ b/Linphone/model/core/CoreModel.cpp @@ -220,7 +220,8 @@ bool CoreModel::setFetchConfig(QString filePath) { if (!filePath.isEmpty()) { if (mCore) { filePath.replace('\\', '/'); - fetched = mCore->setProvisioningUri(Utils::appStringToCoreString(filePath)) == 0; + QUrl url(filePath); + fetched = mCore->setProvisioningUri(Utils::appStringToCoreString(url.toEncoded())) == 0; } } if (!fetched) {