Force string to utf8 before trying to pass it to url encoding

Fix #7878
This commit is contained in:
Marek Roszko 2021-03-16 23:04:42 -04:00
parent 059623a486
commit fee3c41c40
1 changed files with 1 additions and 1 deletions

View File

@ -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 );