diff --git a/application/src/main/java/org/opentripplanner/apis/support/graphql/injectdoc/CustomDocumentation.java b/application/src/main/java/org/opentripplanner/apis/support/graphql/injectdoc/CustomDocumentation.java index b688a546a56..4afe0cf6952 100644 --- a/application/src/main/java/org/opentripplanner/apis/support/graphql/injectdoc/CustomDocumentation.java +++ b/application/src/main/java/org/opentripplanner/apis/support/graphql/injectdoc/CustomDocumentation.java @@ -1,6 +1,8 @@ package org.opentripplanner.apis.support.graphql.injectdoc; import java.io.IOException; +import java.io.InputStreamReader; +import java.nio.charset.StandardCharsets; import java.util.HashMap; import java.util.Map; import java.util.Optional; @@ -142,7 +144,7 @@ private static Map loadCustomDocumentationFromPropertiesFile( throw new OtpAppException("Resource not found: %s", resource); } var props = new Properties(); - props.load(input); + props.load(new InputStreamReader(input, StandardCharsets.UTF_8)); Map map = new HashMap<>(); for (String key : props.stringPropertyNames()) {