encoding fix

This commit is contained in:
2026-08-02 00:25:35 +02:00
parent 9ca47c4cbb
commit a1341b38a9
5 changed files with 44 additions and 5 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
#include "home_screen.h"
#include "../../include/text_utils.h"
#include <M5Stack.h>
#include "../../include/theme.h"
#include "../icons/icons.h"
@@ -75,7 +76,7 @@ void renderHomeScreen(bool forceRefresh) {
M5.Lcd.setTextSize(2);
M5.Lcd.setTextColor(Theme::TEXT_DIM, Theme::BG);
M5.Lcd.setCursor(90, 65);
M5.Lcd.print(lastWeather.current.description);
M5.Lcd.print(sanitizeGermanText(lastWeather.current.description));
if (willRainSoon(lastWeather, 8)) {
Icons::drawRainWarning(280, 30);
@@ -106,7 +107,7 @@ void renderHomeScreen(bool forceRefresh) {
M5.Lcd.setTextColor(Theme::TEXT, Theme::BG);
M5.Lcd.setTextSize(2);
M5.Lcd.setCursor(10, y);
M5.Lcd.print(ev.summary.substring(0, 20));
M5.Lcd.print(sanitizeGermanText(ev.summary.substring(0, 20)));
M5.Lcd.setTextColor(Theme::TEXT_DIM, Theme::BG);
M5.Lcd.setTextSize(1);