Join the world’s largest interactive community dedicated to

文章作者:[db:作者] | 2018-11-16 05:03
字体大小:

  Hi,

  You need to correct a few things.

  1. The properties files should have unicode escape characters for international

  characters. You can convert the international characters into the unicode escape

  with native2ascii.exe provided by JDK.

  e.g. >native2ascii -encoding BIG5 test_i18n_tw.properties

  After the conversion, the properties file for each Chinese locale looks like:

  test_i18n_tw.properties:

  welcome_msg=运用偏好

  test_i18n_cn.properties:

  welcome_msg=你好!!

  This will solve the weird characters displayed whe "tw" is selected.

  2. As for 500 internal error, you simply have a typo in the key in the _cn.properties

  file.

  3. Another piece of adivice I have is you don't need a page directive for specifying

  an encoding of the JSP page. You can do it with the localize tag as:

  

  - Reiji

TAG: [db:TAG标签]
赌博网真人-welcome 关于我们| 法律声明| 免责声明| 隐私条款| 广告服务| 在线投稿| 联系我们| 网站地图