Kohei Nozaki's blog 

How to set default-encoding of Undertow


Posted on Sunday Jan 11, 2015 at 09:57AM in Technology


Launch jboss-cli and connect to WildFly, then enter following and reload:

/subsystem=undertow/servlet-container=default:write-attribute(name=default-encoding,value=UTF-8)
This may solves corruption of multi-byte characters (such as "????") like JSP on Japanese environment or contents. この設定で日本語環境におけるJSPの文字化け等を防げる場合があります.