-
1. Re: how to set wildfly‘s uriencode?
sfcoy Jul 4, 2014 2:20 AM (in response to hai_feng)Adding:
<jboss-web version="8.0" xmlns="http://www.jboss.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jboss.org/j2ee/schema/jboss-web_8_0.xsd" > <default-encoding>UTF-8</default-encoding> </jboss-web>
in jboss-web.xml in your applications should do the trick.
-
2. Re: how to set wildfly‘s uriencode?
hai_feng Jul 7, 2014 5:18 AM (in response to sfcoy)Hi,Stephen Coy
Thanks your reply firstly.
But it seems to be not works,I'm doubt that it isn't the way to configure the URIEncoding of wildfly.
Tomcat and JBoss AS 7configure the URIEncoding on Connector.
I also want to know the wildfly default charset,ISO-8850-1 or UTF-8?
the following is part of undertow's source:
package io.undertow.server.handlers.form;
import java.io.IOException;
import java.net.URLDecoder;
import java.nio.ByteBuffer;
import io.undertow.UndertowLogger;
import io.undertow.UndertowMessages;
import io.undertow.UndertowOptions;
import io.undertow.server.HttpHandler;
import io.undertow.server.HttpServerExchange;
import io.undertow.util.Headers;
import io.undertow.util.SameThreadExecutor;
import org.xnio.ChannelListener;
import org.xnio.IoUtils;
import org.xnio.Pooled;
import org.xnio.channels.StreamSourceChannel;
/**
* Parser definition for form encoded data. This handler takes effect for any request that has a mime type
* of application/x-www-form-urlencoded. The handler attaches a {@link FormDataParser} to the chain
* that can parse the underlying form data asynchronously.
*
* @author Stuart Douglas
*/
public class FormEncodedDataDefinition implements FormParserFactory.ParserDefinition {
public static final String APPLICATION_X_WWW_FORM_URLENCODED = "application/x-www-form-urlencoded";
private String defaultEncoding = "ISO-8859-1";
......
Does it show us that "ISO-8859-1" is wildfly‘s default charset?or URIEncoding?