Learn struts notes 1 --ApplicationResources.properties

xiaoxiao2021-03-06  119

After the number of photos, I had a case where there is a Chinese in ApplicationResources.properties. I have a lot of methods in the Internet. I have a lot of ways to temporarily understand and feasible. Method 1: Background Know: 1) There is a native2ascii.exe under the bin under the Java installation path, which can be used to change the text character encoding. 2) ApplicationResources.properties search sequence: (quoted from http://udoo.51.net/mt/archives/000057.html) when the preferred language English en_us: ApplicationResources_en_us.properties ApplicationResources_en.properties ApplicationResources_zh_ch.properties ApplicationResources_zh.properties ApplicationResources. when the properties preferred language Simplified zh_CN: ApplicationResources_zh_CN.properties ApplicationResources_zh.properties ApplicationResources_en.properties ApplicationResources.properties DOS command: D: / jdk / bin> native2ascii -encoding big5 ApplicationResources1.properties ApplicationResources2.properties Description: big5, ApplicationResources1.properties with Traditional Chinese; GB2312, ApplicationResources1.Properties Contains Simplified Chinese. The Chinese character "Password Error" in ApplicationResources1.properties will become "/ U5BC6 / U78BC / U932F / U8AA4" in ApplicationResources2.properties, and the newly given the name of the file ApplicationResources2.properties to the background 2) In any of the multi-language A resource file is required to change the order above to find itself to himself. To ensure that the converted file can be first searched.

Method 2 will then say :)

转载请注明原文地址:https://www.9cbs.com/read-99014.html

New Post(0)