显示乱码?你的application.properties文件是怎么得到的?是用UNICODE字符表示吗?建议你通过%JAVA—HOME%\BIN\Native2ascii.exe命令来完成。

解决方案 »

  1.   

    Native2ascii application.properties   applicationZH.properties
    好像是这样写的吧,今天休息,到公司后给你查
      

  2.   

    application.properties很简单啊,就一句
    index.jsp.title=操
      

  3.   

    引用后,显示?????<%@ page contentType="text/html;charset=GB2312" language="java" %>
    <%@ taglib uri="/struts-bean" prefix="bean" %>
    <%@ taglib uri="/struts-html" prefix="html" %>
    <%@ taglib uri="/struts-logic" prefix="logic" %>
    <html:html locale="true">
    <head>
    <title><bean:message key="index.jsp.title"/></title>
    <html:base/>
    </head>
    <body>

    </body>
    </html:html>
      

  4.   

    2、3楼的是正解,用jdk中bin下面的Native2ascii.exe将属性文件转码
      

  5.   

    把application.properties里的内容靠到一个文本文件(test.txt)中,执行Native2ascii test.txt testcn.txt。再把testcn.txt中的内容靠到application.properties里
      

  6.   

    我有点明白了,我的那个文件是在
    UltraEdit里直接写的,然后保存为application.properties,是不是就如你们所说,那样保存就行了?
      

  7.   

    把属性文件放到j2sdk1.4/bin 打开运行cmd转道j2sdk1.4/bin目录下键入
    native2ascii.exe old.properties new.properties