Her's the content of the filter class: package se.telia.kontaktamig.web.util;
import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import javax.servlet.*; import java.io.IOException; public class CharsetFilter implements Filter { private static Log log = LogFactory.getLog(se.telia.kontaktamig.web.util.CharsetFilter.class); public void init(FilterConfig config) throws ServletException { log.info(this.getClass().getName() + ": Starting filter."); } public void destroy() { log.info(this.getClass().getName() + ": Destroying filter."); } public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { request.setCharacterEncoding("UTF-8"); log.debug(this.getClass().getName() + ": Setting request to " + request.getCharacterEncoding()); chain.doFilter(request, response); } } ======================== Thanks for your response, guys ================================================================== Martin Gainty wrote: > > Riffla- > can we see the contents of se.telia.kontaktamig.web.util.CharsetFilter? > M-- > --------------------------------------------------------------------------- > This e-mail message (including attachments, if any) is intended for the > use of the individual or entity to which it is addressed and may contain > information that is privileged, proprietary , confidential and exempt from > disclosure. If you are not the intended recipient, you are notified that > any dissemination, distribution or copying of this communication is > strictly prohibited. > --------------------------------------------------------------------------- > Le présent message électronique (y compris les pièces qui y sont annexées, > le cas échéant) s'adresse au destinataire indiqué et peut contenir des > renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le > destinataire de ce document, nous vous signalons qu'il est strictement > interdit de le diffuser, de le distribuer ou de le reproduire. > ----- Original Message ----- > From: "riffla" <[EMAIL PROTECTED]> > To: <user@struts.apache.org> > Sent: Friday, March 23, 2007 9:42 PM > Subject: Re: Character encoding... > > >> >> Encoding set in: >> >> JSP Page directive >> Content inside Html Meta tag >> And there is also a charsetFilter class used (see below) >> >> Struts-config.xml contains: >> === >> <controller contentType="text/html;charset=UTF-8" >> processorClass="org.apache.struts.tiles.TilesRequestProcessor"/> >> === >> >> web.xml contains: >> === >> <filter> >> <filter-name>Character Encoding</filter-name> >> <filter-class>se.telia.kontaktamig.web.util.CharsetFilter</filter-class> >> </filter> >> >> <filter-mapping> >> <filter-name>Character Encoding</filter-name> >> <url-pattern>/*</url-pattern> >> </filter-mapping> >> >> <context-param> >> <param-name>PARAMETER_ENCODING</param-name> >> <param-value>UTF-8</param-value> >> </context-param> >> //To be used and loaded as a common property from within Java/JSP code >> === >> >> >> >> And beside those alreade mentioned, there's also som lines in >> struts-html.tld: >> <attribute> >> <name>useLocalEncoding</name> >> <required>false</required> >> <rtexprvalue>true</rtexprvalue> >> </attribute> >> for some tag elements (img, link and rewrite tags) >> >> That's about it... >> >> /Riffla >> >> >> Christopher Schultz-2 wrote: >>> >>> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA1 >>> >>> Riffla, >>> >>> riffla wrote: >>>> Of course, forgot to mention, mainly I mean as output on a JSP page >>>> (both >>>> bean:write and <%=...%>, but also System.out.println() in different >>>> places, >>>> always the same result... >>> >>> The method of output is not relevant. Only the character encoding is. >>> Where do you set the character encoding of your pages? >>> >>> - -chris >>> >>> -----BEGIN PGP SIGNATURE----- >>> Version: GnuPG v1.4.7 (MingW32) >>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org >>> >>> iD8DBQFGBEen9CaO5/Lv0PARAg3FAJ950MJ6Y8XIqGmysRxtphNCETWzogCgq57d >>> pZH1HfI4X+5nuznbG/9UaXA= >>> =qVbS >>> -----END PGP SIGNATURE----- >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Character-encoding...-tf297678.html#a9646134 >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > -- View this message in context: http://www.nabble.com/Character-encoding...-tf297678.html#a9647817 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]