From 7b22d822f9871222fbbe401c9c79d6a624d21331 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Tue, 17 May 2011 16:07:11 +0200 Subject: Fixed handling UTF-8 input. --- gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui.cpp b/gui.cpp index f29ee82..2303470 100644 --- a/gui.cpp +++ b/gui.cpp @@ -128,7 +128,7 @@ void ConsoleWindow::handle_input() { if(!s.size()) return; - FormattedListboxTextItem *item = new FormattedListboxTextItem(s, HTF_WORDWRAP_LEFT_ALIGNED); + FormattedListboxTextItem *item = new FormattedListboxTextItem(String((utf8*)s.c_str()), HTF_WORDWRAP_LEFT_ALIGNED); listbox->addItem(item); listbox->ensureItemIsVisible(item); } -- cgit v1.2.3