[jboss-jira] [JBoss JIRA] (WFLY-2276) URI ENCODING does not work in the beta1 version (UTF-8)

alexandre xypas (JIRA) jira-events at lists.jboss.org
Fri Oct 11 14:24:26 EDT 2013


    [ https://issues.jboss.org/browse/WFLY-2276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12813561#comment-12813561 ] 

alexandre xypas commented on WFLY-2276:
---------------------------------------

I am using jsf 2 that is shipped with Wildfly Beta1, during validation, the rendered response is not utf-8 encoded. The following filter is used to encode in UTF-8:

@WebFilter(urlPatterns= "/*", filterName="characterEncodingFilter" )
public class CharacterEncodingFilter implements Filter {
	
	@Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ServletException, IOException {
        // To fix a bug in Primefaces
	request.setCharacterEncoding("UTF-8");
        
        //For the javascript to be encoded as UTF-8
        response.setCharacterEncoding("UTF-8");
        chain.doFilter(request, response);
    }
...

}
Is there a way to force Undertow to encode the response as UTF-8? Thanks.
                
> URI ENCODING does not work in the beta1 version (UTF-8)
> -------------------------------------------------------
>
>                 Key: WFLY-2276
>                 URL: https://issues.jboss.org/browse/WFLY-2276
>             Project: WildFly
>          Issue Type: Bug
>          Components: Web (JBoss Web)
>    Affects Versions: 8.0.0.Beta1
>         Environment: Java 7, ubuntu 12.04
>            Reporter: alexandre xypas
>              Labels: encoding, utf-8
>
> In standalone.xml, the following is working in Alpha4, but not anymore in Beta1.
> <property name="org.apache.catalina.connector.URI_ENCODING" value="UTF-8"/>
> <property name="org.apache.catalina.connector.USE_BODY_ENCODING_FOR_QUERY_STRING" value="true"/>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list