Commits

Anonymous committed 8e4feb2

Comments (0)

Files changed (1)

src/java/com/opensymphony/webwork/views/freemarker/FreemarkerResult.java

     }
 
     /**
-     * execute this result, using the specified template location.
+     * Execute this result, using the specified template location.
      * <p/>
      * The template location has already been interoplated for any variable substitutions
      * <p/>
      * the default writer writes directly to the response output stream
      */
     protected Writer getWriter() throws IOException {
-        return new OutputStreamWriter(ServletActionContext.getResponse().getOutputStream());
+        return new OutputStreamWriter(
+                ServletActionContext.getResponse().getOutputStream(),
+                ServletActionContext.getResponse().getCharacterEncoding()
+        );
     }
 
     /**