Struts2请求字符编码 [英] Struts2 request character encoding
本文介绍了Struts2请求字符编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用Struts2。当我通过表单发送特殊字符如ä或ã时,接收它的动作显示那些字符不同(如Ã+一个小方块)。我知道我有一个编码问题,但我无法找到请求编码可以配置Struts2。
I'm using Struts2. When I send 'special' characters like ä or ã through a form, the actions that receive it display those characters differently (like à + a little square). I know that I have an encoding problem, but I was unable to find where the request encoding can be configured for Struts2.
任何人都可以帮助我吗?
Can anyone please help me ?
最好的问候,
Nils
推荐答案
回答自己的问题:
链接应该始终采用网址编码。 s:url encoding设置为true似乎不能正常工作(或滥用?但我怀疑),它与旧的好c:url。
links should always be URL-encoded. The s:url encoding set to true does not seem to work properly (or misused ? But I doubt) and it works with the old good c:url.
这篇关于Struts2请求字符编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文