Skip to content

Commit

Permalink
Merge pull request #1994 from guwwl123/master
Browse files Browse the repository at this point in the history
[ISSUE #1993] Replacing default encoding with UTF-8 in WebhookFileListener
close #1993
  • Loading branch information
xwm1992 authored Oct 28, 2022
2 parents 97ee665 + f778cca commit 6d32055
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void readFiles(File file) {
*/
public void cacheInit(File webhookConfigFile) {
StringBuilder fileContent = new StringBuilder();
try (BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(webhookConfigFile)))) {
try (BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(webhookConfigFile), StandardCharsets.UFT_8))) {
String line = null;
while ((line = br.readLine()) != null) {
fileContent.append(line);
Expand Down

0 comments on commit 6d32055

Please sign in to comment.