fix display of umlauts (UTF-8 left byte C3) (#5252)

This commit is contained in:
Timo
2024-11-05 12:36:37 +02:00
committed by GitHub
parent f769c50fa5
commit 8e2a3e5728

View File

@@ -327,10 +327,15 @@ class Screen : public concurrency::OSThread
SKIPREST = false; SKIPREST = false;
return (uint8_t)ch; 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 // We want to strip out prefix chars for two-byte char formats
if (ch == 0xC2) if (ch == 0xC2 || ch == 0xC3)
return (uint8_t)0; return (uint8_t)0;
#if defined(OLED_PL) #if defined(OLED_PL)