Skip to content

Commit

Permalink
fix display of umlauts (UTF-8 left byte C3)
Browse files Browse the repository at this point in the history
  • Loading branch information
timo-mart authored and fifieldt committed Nov 5, 2024
1 parent f769c50 commit 0bffbae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/graphics/Screen.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0bffbae

Please sign in to comment.