mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-26 23:08:11 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user