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();