Browse Source

explicitly set encoding to iso-8859-1 since this is what Properties.load expects

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@786515 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
183de933a1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/LoadProperties.java

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/LoadProperties.java View File

@@ -168,7 +168,7 @@ public class LoadProperties extends Task {
if (!text.endsWith("\n")) {
text = text + "\n";
}
tis = new ByteArrayInputStream(text.getBytes());
tis = new ByteArrayInputStream(text.getBytes("ISO8859_1"));
final Properties props = new Properties();
props.load(tis);



Loading…
Cancel
Save