From 8e2a3e5728bc997449c7507be76249b7a90166a6 Mon Sep 17 00:00:00 2001 From: Timo <46269205+timo-mart@users.noreply.github.com> Date: Tue, 5 Nov 2024 12:36:37 +0200 Subject: [PATCH] fix display of umlauts (UTF-8 left byte C3) (#5252) --- src/graphics/Screen.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/graphics/Screen.h b/src/graphics/Screen.h index b2e6e905b..3066c0c17 100644 --- a/src/graphics/Screen.h +++ b/src/graphics/Screen.h @@ -327,10 +327,15 @@ class Screen : public concurrency::OSThread SKIPREST = false; return (uint8_t)ch; } + + case 0xC3: { + SKIPREST = false; + return (uint8_t)(ch | 0xC0); + } } // We want to strip out prefix chars for two-byte char formats - if (ch == 0xC2) + if (ch == 0xC2 || ch == 0xC3) return (uint8_t)0; #if defined(OLED_PL)