Access resource file garbled solution

xiaoxiao2021-03-06  43

native2ascii In JDK / BIN directory native2ascii [-reverse] [-encoding encoding] [inputfile [outputfile]] Forward: To: Unicodenative2ascii -encoding gb2312 source.properties target.properties reverse: Reverse Unicode To designate code native2ascii -reverse - Encoding big5 Source22.properties Target2.properties

Of course, you can write BAT automatic conversion

1 write system variable PATH --- JDK / BIN

2 built a BAT file

Del ApplicationResources.propertiesNative2ASCII --Encoding GB2312 Beyond.properties ApplicationResources.properties

Save the BAT to copy this BAT to execute it OK

Example: C: / Tomcat 5.0 / WebApps / StrutsJB9 / Web-inf / class / beyond.propertiesRROR.Login.userName =

  • There is no username error.login.nulluserName =
  • User name cannot be empty Error. Login.password =
  • Password error Erroors.footer = error = "red>

    Then you are opening ApplicationResources.properties and see the effect.

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

    New Post(0)