Now using an InputStreamReader with UTF8 to read the properties file.
This commit is contained in:
parent
dc82c66d68
commit
21f74b2729
1 changed files with 3 additions and 1 deletions
|
@ -45,6 +45,7 @@ import javax.tools.Diagnostic;
|
|||
import javax.tools.FileObject;
|
||||
import javax.tools.StandardLocation;
|
||||
import java.io.*;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.HashSet;
|
||||
import java.util.Properties;
|
||||
import java.util.Set;
|
||||
|
@ -80,7 +81,8 @@ public class VersionProcessor extends AbstractProcessor {
|
|||
|
||||
final Properties p = new Properties();
|
||||
|
||||
try (final FileReader reader = new FileReader(propsFile)) {
|
||||
try (final InputStreamReader reader =
|
||||
new InputStreamReader(new FileInputStream(propsFile), StandardCharsets.UTF_8)) {
|
||||
p.load(reader);
|
||||
|
||||
versionInfo.setProject(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue