mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-02 10:16: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:
co-authored by
Claude Sonnet 4.6
parent
c375c4b217
commit
5fde79fae7
@@ -93,8 +93,10 @@ struct KeyboardWidget {
|
|||||||
} else {
|
} else {
|
||||||
linebuf[0] = '\0';
|
linebuf[0] = '\0';
|
||||||
}
|
}
|
||||||
|
char linebuf_t[32];
|
||||||
|
display.translateUTF8ToBlocks(linebuf_t, linebuf, sizeof(linebuf_t));
|
||||||
display.setCursor(0, pl * lh);
|
display.setCursor(0, pl * lh);
|
||||||
display.print(linebuf);
|
display.print(linebuf_t);
|
||||||
}
|
}
|
||||||
display.fillRect(0, sep_y, display.width(), 1);
|
display.fillRect(0, sep_y, display.width(), 1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user