native2ascii ApplicationResources_xx.properties  目标文件名称

解决方案 »

  1.   

    native2ascii -encoding utf-8 ApplicationResources_xx.properties ApplicationResources_zh.properties源文件 ApplicationResources_xx.properties 
    目标文件 ApplicationResources_zh.properties
      

  2.   

    加encoding是说明你源文件的编码格式,目标的文件应该都是没有中文等符号的,只有标准的一些字符,应该是没有编码问题的
      

  3.   

    Checked exception thrown when an input byte sequence is not legal for given charset, or an input character sequence is not a legal sixteen-bit Unicode sequence
      

  4.   

    native2ascii Converter結構
    native2ascii [options] [inputfile [outputfile]]說明Java 編譯器和其它 Java 工具只能處理含有 Latin-1 和/或 Unicode 編碼(\udddd 記號)字符的文件。native2ascii 將含有其它字符編碼的文件轉換成含 Latin-1 和/或 Unicode 編碼字符的文件。若省略 outputfile,則使用標準輸出設備輸出。此外,如果也省略 inputfile,則使用標準輸入設備輸入。選項-reverse
    執行相反的操作:將含 Latin-1 和/或 Unicode 編碼字符的文件轉換成含本地編碼字符的文件:-encoding encoding_name
    指定轉換程序使用的編碼名稱。預設的編碼從系統屬性 file.encoding 中得到。encoding_name 字符串必須是下表第一欄所示的字符串。
    Converter kind decription 
    Big5 Big5 碼,繁體中文 
    GBK GBK碼,簡體中文 
    UTF8 Unicode,UTF8碼 
      

  5.   

    可是为什么会出错呢?
    出如下错误
    sun.io.MalformedInputException