summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/satserver
diff options
context:
space:
mode:
authorSimon Rettberg2017-08-16 18:25:02 +0200
committerSimon Rettberg2017-08-16 18:25:02 +0200
commit4515b32e8c2ef8e0bee53ee2a5cec1f8828f5dd7 (patch)
tree0309954a5965bbd3e43c637ae0d2195170e518d2 /src/main/java/org/openslx/satserver
parentUpdate dependencies (diff)
downloadtmlite-bwlp-4515b32e8c2ef8e0bee53ee2a5cec1f8828f5dd7.tar.gz
tmlite-bwlp-4515b32e8c2ef8e0bee53ee2a5cec1f8828f5dd7.tar.xz
tmlite-bwlp-4515b32e8c2ef8e0bee53ee2a5cec1f8828f5dd7.zip
Fix deprecation warning
Diffstat (limited to 'src/main/java/org/openslx/satserver')
-rw-r--r--src/main/java/org/openslx/satserver/util/Template.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/openslx/satserver/util/Template.java b/src/main/java/org/openslx/satserver/util/Template.java
index 82d0695..593eea9 100644
--- a/src/main/java/org/openslx/satserver/util/Template.java
+++ b/src/main/java/org/openslx/satserver/util/Template.java
@@ -2,6 +2,7 @@ package org.openslx.satserver.util;
import java.io.File;
import java.io.IOException;
+import java.nio.charset.StandardCharsets;
import org.apache.commons.io.FileUtils;
@@ -12,7 +13,7 @@ public class Template
public Template(final String filename) throws IOException
{
- this.content = FileUtils.readFileToString( new File( filename ) );
+ this.content = FileUtils.readFileToString( new File( filename ), StandardCharsets.UTF_8 );
}
public void replace(final String search, final String replace)