From e9f0909a6e29b4e6737b49d637469dbac43d3065 Mon Sep 17 00:00:00 2001 From: Vitalii Koshura Date: Sun, 24 Mar 2019 20:26:34 +0200 Subject: [PATCH] [Manager] Make proper UTF-8 decoding of AM info When attaching to AM make proper decoding of UTF-8 encoded strings. Fixes #3068 Signed-off-by: Vitalii Koshura --- clientgui/AccountManagerInfoPage.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clientgui/AccountManagerInfoPage.cpp b/clientgui/AccountManagerInfoPage.cpp index 3c29436a57..fe68d0a85d 100644 --- a/clientgui/AccountManagerInfoPage.cpp +++ b/clientgui/AccountManagerInfoPage.cpp @@ -302,10 +302,10 @@ void CAccountManagerInfoPage::OnPageChanged( wxWizardExEvent& event ) { CAcctMgrListItem* pItem = new CAcctMgrListItem(); - pItem->SetURL( pl.account_managers[i]->url.c_str() ); - pItem->SetName( pl.account_managers[i]->name.c_str() ); - pItem->SetImage( pl.account_managers[i]->image.c_str() ); - pItem->SetDescription( pl.account_managers[i]->description.c_str() ); + pItem->SetURL( wxString(pl.account_managers[i]->url.c_str(), wxConvUTF8) ); + pItem->SetName( wxString(pl.account_managers[i]->name.c_str(), wxConvUTF8) ); + pItem->SetImage( wxString(pl.account_managers[i]->image.c_str(), wxConvUTF8) ); + pItem->SetDescription( wxString(pl.account_managers[i]->description.c_str(), wxConvUTF8) ); m_pProjectListCtrl->Append(