This is an automated email from the ASF dual-hosted git repository. joshtynjala pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
commit 9de18511c8e307feffd89da88dc99cbbc6a6476d Author: Josh Tynjala <[email protected]> AuthorDate: Thu Apr 6 11:00:55 2023 -0700 EmbedNode: for consistency, default to UTF-8 for plain text instead of system encoding --- .../java/org/apache/royale/compiler/internal/tree/as/EmbedNode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/EmbedNode.java b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/EmbedNode.java index 039f78888..a57150186 100644 --- a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/EmbedNode.java +++ b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/EmbedNode.java @@ -160,7 +160,7 @@ public class EmbedNode extends ExpressionNodeBase implements IEmbedNode, IEmbedR { File file = new File(FilenameNormalization.normalize(source)); try { - String string = FileUtils.readFileToString(file); + String string = FileUtils.readFileToString(file, "UTF-8"); return string; } catch (IOException e) { problems.add(new EmbedUnableToReadSourceProblem(e, file.getPath()));
