diff --git a/src/com/google/javascript/jscomp/ant/CompileTask.java b/src/com/google/javascript/jscomp/ant/CompileTask.java
index <HASH>..<HASH> 100644
--- a/src/com/google/javascript/jscomp/ant/CompileTask.java
+++ b/src/com/google/javascript/jscomp/ant/CompileTask.java
@@ -276,8 +276,8 @@ public final class CompileTask
   /**
    * Set output file encoding
    */
-  public void setOutputEncoding(Charset outputEncoding) {
-    this.outputEncoding = outputEncoding;
+  public void setOutputEncoding(String outputEncoding) {
+    this.outputEncoding = Charset.forName(outputEncoding);
   }
 
   /**
Make setOutputEncoding() accept String instead of Charset.
Contributed externally by blasss@.
Closes PR #<I>.

-------------
Created by MOE: <URL>