Thanks a lot, that has sorted it out. I'm a bit confused as to why changing the default from utf-8 works though...
Jonny Cavell wrote: > > I am setting default_encoding=UTF-8 in freemarker.properties, and leaving > the struts encoding in default.properties untouched (i.e. > struts.i18n.encoding=UTF-8). When I use a struts action to forward to a > test page with Spanish text, without specifying the type (thus defaulting > to jsp), it outputs fine. However, if the action forwards to the same > page, but specifying the type as freemarker, the output is garbled. It is > also garbled for Velocity, making me think that the problem must lie > somewhere within Struts 2. > > Even if I subclass FreemarkerManager, override the createConfiguration > method and explicitly call config.setDefaultEncoding("utf-8") here, and > specify this class as the struts.freemarker.manager.classname in > struts.properties, it makes no difference - the output is garbled. > > Does anybody know why this might be the case? > > Thanks > > Jonny > > -- View this message in context: http://www.nabble.com/Character-encoding-problems-with-Struts-2-and-Freemarker-or-Velocity-tp14538951p14575550.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]