Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-231 Here is an overview of the issue: --------------------------------------------------------------------- Key: WW-231 Summary: VelocityResult encoding problems Type: Bug Status: Assigned Priority: Major Project: WebWork Components: Views Versions: 2.0-alpha2 2.0-alpha1 Assignee: Patrick Lightbody Reporter: Grzegorz Mucha Created: Sat, 19 Jul 2003 7:12 AM Updated: Sat, 19 Jul 2003 7:12 AM Environment: I was able to produce this errors using Polish locale, with input.encoding=Cp1250, output.encoding=iso-8859-2. Description: VelocityResult messes with the input.encoding and output.encoding Velocity properties. While the WebworkVelocityServlet works just fine (for vm files not called through action), VelocityResult seems to ignore output.encoding (it returns files with charset=input.encoding) . The reason are (probably) the lines: if (t.getEncoding() != null) { response.setContentType("text/html; charset=" + t.getEncoding()); After changing the above to use RuntimeSingleton: RuntimeSingleton.getString(RuntimeSingleton.OUTPUT_ENCODING, WebWorkVelocityServlet.DEFAULT_OUTPUT_ENCODING) (ripped off from WebworkVelocityServlet) it started working --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.opensymphony.com/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork