From e0c4d11baefa328331be113533c47ee89fda16c6 Mon Sep 17 00:00:00 2001 From: Noisyfox Date: Tue, 26 May 2026 20:30:39 +0800 Subject: [PATCH] Fix display of non-ascii orca cloud user name (#13856) --- src/slic3r/GUI/GUI_App.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index 6b30dfa9cd..a84565786c 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -4374,12 +4374,12 @@ void GUI_App::get_login_info(const std::string& provider/* = ORCA_CLOUD_PROVIDER if (m_agent) { if (m_agent->is_user_login(provider)) { std::string login_cmd = m_agent->build_login_cmd(provider); - wxString strJS = wxString::Format("window.postMessage(%s)", login_cmd); + wxString strJS = wxString::Format("window.postMessage(%s)", from_u8(login_cmd)); GUI::wxGetApp().run_script(strJS); } else { m_agent->user_logout(false, provider); std::string logout_cmd = m_agent->build_logout_cmd(provider); - wxString strJS = wxString::Format("window.postMessage(%s)", logout_cmd); + wxString strJS = wxString::Format("window.postMessage(%s)", from_u8(logout_cmd)); GUI::wxGetApp().run_script(strJS); } mainframe->m_webview->SetLoginPanelVisibility(true);