From fee3c41c40a70a3ef865f4d83c999cbbc6f18a74 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Tue, 16 Mar 2021 23:04:42 -0400 Subject: [PATCH] Force string to utf8 before trying to pass it to url encoding Fix #7878 --- common/tool/common_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/tool/common_control.cpp b/common/tool/common_control.cpp index 20bd1ad33a..4e3f7f123d 100644 --- a/common/tool/common_control.cpp +++ b/common/tool/common_control.cpp @@ -249,7 +249,7 @@ int COMMON_CONTROL::ReportBug( const TOOL_EVENT& aEvent ) KICAD_CURL_EASY kcurl; wxString url_string; - url_string.Printf( m_bugReportUrl, kcurl.Escape( message.ToStdString() ) ); + url_string.Printf( m_bugReportUrl, kcurl.Escape( std::string( message.utf8_str() ) ) ); wxLaunchDefaultBrowser( url_string );