Skip to content

Commit 4cc446a

Browse files
authored
Merge pull request #5 from alex-kabin/master
fixed output file encoding (utf-8)
2 parents 0376e3f + e800574 commit 4cc446a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/springdoc/maven/plugin/SpringDocMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void execute() {
4545
if (responseCode == HttpURLConnection.HTTP_OK) {
4646
result = this.readFullyAsString(conection.getInputStream());
4747
outputDir.mkdirs();
48-
Files.write(Paths.get(outputDir.getAbsolutePath() + "/" + outputFileName), result.getBytes());
48+
Files.write(Paths.get(outputDir.getAbsolutePath() + "/" + outputFileName), result.getBytes(StandardCharsets.UTF_8));
4949
} else {
5050
getLog().error("An error has occured: Response code " + responseCode);
5151
}

0 commit comments

Comments
 (0)