From b360c3305e0c9401810f78c08a2b18b8e4379c94 Mon Sep 17 00:00:00 2001 From: zlbruce Date: Thu, 21 Nov 2024 11:22:53 +0800 Subject: [PATCH] fix filename encode issue when download chinese filename --- src/slic3r/GUI/Downloader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Downloader.cpp b/src/slic3r/GUI/Downloader.cpp index 7757ca3ad67..c5a22ac6887 100644 --- a/src/slic3r/GUI/Downloader.cpp +++ b/src/slic3r/GUI/Downloader.cpp @@ -159,7 +159,7 @@ void Downloader::start_download(const std::string& full_url) size_t id = get_next_id(); std::string escaped_url = FileGet::escape_url(full_url.substr(results.length())); if (is_bambustudio_open(full_url) || (is_orca_open(full_url) && is_makerworld_link(full_url))) - plater->request_model_download(escaped_url); + plater->request_model_download(wxString::FromUTF8(escaped_url)); else { std::string text(escaped_url); m_downloads.emplace_back(std::make_unique(id, std::move(escaped_url), this, m_dest_folder)); @@ -254,4 +254,4 @@ void Downloader::set_download_state(int id, DownloadState state) } } -} \ No newline at end of file +}