From 5fde79fae7489f8c6c45a647570cdce60ed52a7f Mon Sep 17 00:00:00 2001 From: Jakub <106778416+MarekZegare4@users.noreply.github.com> Date: Sun, 24 May 2026 15:28:10 +0200 Subject: [PATCH] fix(ui): translate keyboard preview buffer through UTF-8 handler KeyboardWidget printed the text preview directly via display.print() without calling translateUTF8ToBlocks first. When a reply prefix contained a UTF-8 sender name (e.g. Cyrillic), raw multi-byte sequences reached the display driver on non-Lemon renders. Co-Authored-By: Claude Sonnet 4.6 --- examples/companion_radio/ui-new/KeyboardWidget.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/companion_radio/ui-new/KeyboardWidget.h b/examples/companion_radio/ui-new/KeyboardWidget.h index a8b1019f..2b4f4c8b 100644 --- a/examples/companion_radio/ui-new/KeyboardWidget.h +++ b/examples/companion_radio/ui-new/KeyboardWidget.h @@ -93,8 +93,10 @@ struct KeyboardWidget { } else { linebuf[0] = '\0'; } + char linebuf_t[32]; + display.translateUTF8ToBlocks(linebuf_t, linebuf, sizeof(linebuf_t)); display.setCursor(0, pl * lh); - display.print(linebuf); + display.print(linebuf_t); } display.fillRect(0, sep_y, display.width(), 1);