diff --git a/platform/default/asset_request_fs.cpp b/platform/default/asset_request_fs.cpp index 8fc56eb16..9dae2e8a9 100644 --- a/platform/default/asset_request_fs.cpp +++ b/platform/default/asset_request_fs.cpp @@ -3,6 +3,7 @@ #include #include #include +#include #include #include @@ -58,10 +59,10 @@ AssetRequest::AssetRequest(const Resource& resource_, Callback callback_, uv_loo std::string path; if (url.size() <= 8 || url[8] == '/') { // This is an empty or absolute path. - path = url.substr(8); + path = mbgl::util::percentDecode(url.substr(8)); } else { // This is a relative path. Prefix with the application root. - path = assetRoot + "/" + url.substr(8); + path = assetRoot + "/" + mbgl::util::percentDecode(url.substr(8)); } uv_fs_open(loop, &req, path.c_str(), O_RDONLY, S_IRUSR, fileOpened);