1
我在jboss 7 linux上使用java 6 jsf1.2和rich faces 3.3.3。使用JSF输入错误编码
在windows + tomcat上一切正常,但当我移动到linux + jboss时,我得到了一个问题,其中h:inputText在希伯来语中将以服务器端而不是希伯来语字母的形式作为jibrish(@#@!#)。所有的文件都是utf-8。
如何解决此编码问题?
我在jboss 7 linux上使用java 6 jsf1.2和rich faces 3.3.3。使用JSF输入错误编码
在windows + tomcat上一切正常,但当我移动到linux + jboss时,我得到了一个问题,其中h:inputText在希伯来语中将以服务器端而不是希伯来语字母的形式作为jibrish(@#@!#)。所有的文件都是utf-8。
如何解决此编码问题?
这需要在/standalone/configuration/standalone.xml
中进行配置。添加下面的一块右后的</extensions>
:
<system-properties>
<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"/>
</system-properties>