From d331c523444a91451791316dab0baaf5d6aadf81 Mon Sep 17 00:00:00 2001 From: xianing Date: Mon, 31 Aug 2020 14:10:41 +0800 Subject: [PATCH] fix non-english text display issue --- rtmCWrapper/rtmBase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtmCWrapper/rtmBase.h b/rtmCWrapper/rtmBase.h index ccd89de..f95b649 100644 --- a/rtmCWrapper/rtmBase.h +++ b/rtmCWrapper/rtmBase.h @@ -227,7 +227,7 @@ extern "C" void onMessageReceived(const char* userId, const agora::rtm::IMessage* message) override { //const char *channelId = utf82gbk(m_channeId); - std::string msg = utf82gbk(message->getText()); + std::string msg = message->getText(); if (cmr != nullptr) cmr(userId, "", msg.c_str());