diff --git a/sources/scalac/CompilerCommand.java b/sources/scalac/CompilerCommand.java
index <HASH>..<HASH> 100644
--- a/sources/scalac/CompilerCommand.java
+++ b/sources/scalac/CompilerCommand.java
@@ -159,8 +159,7 @@ public class CompilerCommand extends CommandParser {
 
         this.encoding = new StringOptionParser(this,
             "encoding", "Specify character encoding used by source files",
-            // !!! is there a way to get the platform default charset name
-            "encoding", "ISO-8859-1"),
+            "encoding", System.getProperty("file.encoding", "ISO-8859-1")),
 
         this.separate = new ChoiceOptionParser(this,
             "separate", "Read symbol files for separate compilation: (yes, no)",
- The default encoding is now obtained from Sys...

- The default encoding is now obtained from
System.getProperty("file.encoding")