From 6d6f5dbf8c8e39aa0cf641a932d4da12200160fe Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 3 Mar 2025 11:20:59 -0500 Subject: Handle unicode conversion between wx and rest of app --- src/connection_dialog.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/connection_dialog.h') diff --git a/src/connection_dialog.h b/src/connection_dialog.h index 9fe62fd..ec2ee72 100644 --- a/src/connection_dialog.h +++ b/src/connection_dialog.h @@ -14,12 +14,12 @@ class ConnectionDialog : public wxDialog { public: ConnectionDialog(); - std::string GetServerValue() { return server_box_->GetValue().ToStdString(); } + std::string GetServerValue() { return server_box_->GetValue().utf8_string(); } - std::string GetPlayerValue() { return player_box_->GetValue().ToStdString(); } + std::string GetPlayerValue() { return player_box_->GetValue().utf8_string(); } std::string GetPasswordValue() { - return password_box_->GetValue().ToStdString(); + return password_box_->GetValue().utf8_string(); } private: -- cgit 1.4.1