Skip to content

Commit

Permalink
Use UTF-8 charset
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre601 committed Aug 7, 2022
1 parent c3aa7c2 commit 0e398c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import okhttp3.ResponseBody;

import java.io.*;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
Expand Down Expand Up @@ -116,7 +117,7 @@ private VersionsFile copyAndUpdate(String json){
return null;

try{
FileWriter fileWriter = new FileWriter(file.toFile(), false);
FileWriter fileWriter = new FileWriter(file.toFile(), StandardCharsets.UTF_8, false);
BufferedWriter writer = new BufferedWriter(fileWriter);

writer.write(json);
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<plugin.version>3.11.2</plugin.version>
<plugin.version>3.11.3</plugin.version>
<plugin.description>Only allow specific client versions on your Network.</plugin.description>

<maven.compiler.target>11</maven.compiler.target>
Expand Down

0 comments on commit 0e398c2

Please sign in to comment.