JBoss编码utf 8 [英] JBoss Encoding utf 8

查看:401
本文介绍了JBoss编码utf 8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的列表网格出现问题,没有正确显示符号,我发现当我从java插入到数据库中时,这些值已经被窃听了。

在这里帮助,我改变了我的项目属性 - >文本编码 - >其他 - > UTF-8,这解决了我的问题。问题是这只能在本地修复我的问题。



我需要做的是在我的Jboss服务器上也设置编码。我只能访问此面板,因为我无法直接访问配置文件。我可以从这里做到吗?





对于这个愚蠢的问题,任何建议都表示赞赏和抱歉,但我尝试了所有我能想到但没有成功的事情。感谢。



 < system-性状> 
< property name =org.apache.catalina.connector.URI_ENCODINGvalue =UTF-8/>
< property name =org.apache.catalina.connector.USE_BODY_ENCODING_FOR_QUERY_STRINGvalue =true/>
< / system-properties>


I had problems with my list grids not showing diacritics correctly and I found out that when I inserted from java into the DB the values were already bugged.

A post here helped and I changed my project properties -> Text encoding -> other -> UTF-8 and this fixed my problem. The thing is this only fixes my problem locally.

What I need to do is on my Jboss server also set the encoding somehow. I can only access this panel because I can't access the configuration files directly. Can I do it from here?

Any suggestions are appreciated and sorry for this dumb question but I tried everything I could think of with no success. Thanks.

解决方案

This may help you https://community.jboss.org/message/643825#643825

<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>

这篇关于JBoss编码utf 8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆