From d930f0a64af919145518c3088a64c9e7d8fbe24d Mon Sep 17 00:00:00 2001 From: zzz <zzz@i2pmail.org> Date: Tue, 25 Jan 2022 09:40:02 -0500 Subject: [PATCH] Console: Set encoding for CSS --- .../java/src/net/i2p/router/web/LocaleWebAppHandler.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/routerconsole/java/src/net/i2p/router/web/LocaleWebAppHandler.java b/apps/routerconsole/java/src/net/i2p/router/web/LocaleWebAppHandler.java index 9e3c7f5490..d42287895e 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/LocaleWebAppHandler.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/LocaleWebAppHandler.java @@ -101,6 +101,9 @@ public class LocaleWebAppHandler extends HandlerWrapper } else if (pathInContext.startsWith("/js/")) { // war internal httpResponse.setCharacterEncoding("ISO-8859-1"); + } else if (pathInContext.endsWith(".css")) { + // war internal + httpResponse.setCharacterEncoding("UTF-8"); } //System.err.println("New path: " + newPath); super.handle(newPath, baseRequest, httpRequest, httpResponse); -- GitLab