From 6c68a9d51d9c23407d84e5fa8f20e048b78ae323 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Sun, 22 Aug 2021 21:53:21 +0200 Subject: [PATCH] fix(modulo): fix bad searchbar handling of utf8 chars --- espanso-modulo/src/sys/search/search.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/espanso-modulo/src/sys/search/search.cpp b/espanso-modulo/src/sys/search/search.cpp index 9daadad..4881ef5 100644 --- a/espanso-modulo/src/sys/search/search.cpp +++ b/espanso-modulo/src/sys/search/search.cpp @@ -398,13 +398,13 @@ void SearchFrame::SetItems(SearchItem *items, int itemSize) for (int i = 0; i < itemSize; i++) { - wxString item = items[i].label; + wxString item = wxString::FromUTF8(items[i].label); wxItems.Add(item); - wxString id = items[i].id; + wxString id = wxString::FromUTF8(items[i].id); wxIds.Add(id); - wxString trigger = items[i].trigger; + wxString trigger = wxString::FromUTF8(items[i].trigger); wxTriggers.Add(trigger); }