如何使Struts 2中的项目国际化? [英] How to make a project internationalized in Struts 2?
问题描述
我想使我的项目国际化.我正在支持西班牙语和意大利语,但是两种语言中的某些字符(急性重音符和重重音符)在UI上无法正确显示.
I want to make my project internationalized. I am giving support for the Spanish and Italian languages, but some of the characters from both of the languages (acute accent and grave accent characters) are not appearing properly on the UI.
有人有解决这个问题的方法吗?
Does anybody have the solution for this problem?
推荐答案
是.您有编码问题.服务器会按照您的浏览器的想法为页面提供不同的编码,这是因为国际字符显示有误.
Yes. You have an encoding problem. Your server gives the pages in a different encoding, as your browser thinks, and this is because international characters appear faulty.
您需要修复webapp和appserver的设置,以使用更好的编码(建议使用utf-8).
You need to fix the settings of your webapp and your appserver, to use the better encoding (preferable utf-8).
这篇关于如何使Struts 2中的项目国际化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!