From ad363962a7e3ea75a34e6fd79c7a505f9cc86e8a Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Tue, 1 Mar 2022 13:30:46 +1100 Subject: [PATCH] Don't use system dependent charset Fixes #23991 --- .../vertx/http/runtime/devmode/FileSystemStaticHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/devmode/FileSystemStaticHandler.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/devmode/FileSystemStaticHandler.java index ab7675c670e49..e490f7b55320a 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/devmode/FileSystemStaticHandler.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/devmode/FileSystemStaticHandler.java @@ -2,7 +2,7 @@ import java.io.Closeable; import java.io.IOException; -import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; import java.nio.file.FileSystem; import java.nio.file.FileSystems; import java.nio.file.Files; @@ -31,7 +31,7 @@ */ public class FileSystemStaticHandler implements Handler, Closeable { - private static final String DEFAULT_CONTENT_ENCODING = Charset.defaultCharset().name(); + private static final String DEFAULT_CONTENT_ENCODING = StandardCharsets.UTF_8.name(); private static final ReentrantLock ROOT_CREATION_LOCK = new ReentrantLock();