隨筆-314  評(píng)論-209  文章-0  trackbacks-0
          中文資源轉(zhuǎn)換成utf-8編碼
          native2ascii -encoding utf-8 project.properties.GBK project.properties

          utf-8編碼格式的文件轉(zhuǎn)換成原來(lái)的格式
          native2ascii -reverse -encoding utf-8 project.properties project.properties.GBK
          posted on 2006-11-21 14:54 xzc 閱讀(518) 評(píng)論(1)  編輯  收藏 所屬分類: Java

          評(píng)論:
          # re: native2ascii用法[未登錄](méi) 2008-11-22 16:20 | xzc
          import java.util.Locale;

          public class EchoDefaultSystemEncoding {

          public static void main(String[] args) {

          String encoding = System.getProperty("file.encoding");
          System.out.println("Default System Encoding:" + encoding);

          System.out.println("Locale.getDefault()=" + Locale.getDefault());

          System.out.println("系統(tǒng)參數(shù)");
          System.getProperties().list(System.out);
          }
          }  回復(fù)  更多評(píng)論
            
          主站蜘蛛池模板: 安阳县| 天祝| 兴义市| 武宁县| 五莲县| 资源县| 阳高县| 丹阳市| 天全县| 水城县| 东至县| 惠来县| 南溪县| 内江市| 北碚区| 丹巴县| 广州市| 新密市| 句容市| 柞水县| 常德市| 舟山市| 伽师县| 剑河县| 海宁市| 冀州市| 仁怀市| 通河县| 金沙县| 彩票| 怀宁县| 同德县| 大连市| 靖西县| 双江| 吉林市| 日照市| 上林县| 海南省| 城口县| 徐闻县|