lqxue

          常用鏈接

          統計

          book

          tools

          最新評論

          用native2ascii將ApplicationResources.properties中的中文轉化成unicode碼

          我的做法是
          1.在clipsee中創建這樣一個文件ApplicationResources.properties_zh,自然里邊就用來保存中文了.而且系統會自動地以GBK的方式存儲該文件,所有該文件在eclipse里也可以顯示,不至于像 ApplicationResources.properties 那樣出現亂碼.

          2.用native2ascii工具轉換該文件成unicode碼,這個工具就在jdk的bin下,使用的方式如下:
          native2ascii.exe ApplicationResources.properties_zh ApplicationResources.properties

          ant:
          <native2ascii src="${dir.target}" includes="Resources.properties" dest="${dir.target}/ascii" encoding="utf-8"/>

          詳細說明:http://ant.apache.org/manual/OptionalTasks/native2ascii.html

          posted on 2007-06-04 15:55 lqx 閱讀(449) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 汉中市| 五莲县| 卓尼县| 合作市| 方城县| 耿马| 阜新市| 仙游县| 白玉县| 元谋县| 甘孜| 石河子市| 资阳市| 平果县| 灵璧县| 图片| 车致| 溧水县| 林芝县| 资源县| 安陆市| 浮山县| 沙坪坝区| 广安市| 铁岭县| 江陵县| 临洮县| 东海县| 奉新县| 从化市| 镇原县| 兴海县| 河北区| 栾城县| 灯塔市| 东丽区| 皋兰县| 资源县| 宁都县| 扎赉特旗| 突泉县|