consistently treat input scripts as utf-8
This commit is contained in:
1 parent
c9b56c44f6
commit
ea52048f3d
1 file changed
+1
-1
@@ -32,7 +32,7 @@ public class FileModule extends Module
|
||||
try
|
||||
{
|
||||
name = sourceFile.getName().replaceFirst("\\.scl?","").toLowerCase(Locale.ROOT);
|
||||
code = new String(Files.readAllBytes(sourceFile.toPath()));
|
||||
code = new String(Files.readAllBytes(sourceFile.toPath()), StandardCharsets.UTF_8);
|
||||
}
|
||||
catch ( IOException e)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user