首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

警告:编码 UTF8 的不可投射字符

2012-10-06 
警告:编码 UTF8 的不可映射字符compilerarg line-encoding GBK /,改好后的javac如下:javac srcdir

警告:编码 UTF8 的不可映射字符
警告:编码 UTF8 的不可投射字符

    <compilerarg line="-encoding GBK "/>,改好后的<javac>如下:
    警告:编码 UTF8 的不可投射字符
      <javac srcdir="${src.home}" destdir="${build.class}" debug="yes"> <compilerarg line="-encoding GBK "/> <classpath refid="compile.classpath"> </classpath></javac>
      再Build就正常了.
      You can determine the current character encoding settings by means of the System class:

      String currentEncoding = System.getProperty("file.encoding");

      Or by means of the Charset class: Charset.defaultCharset()

      You could change the default encoding used by your application by means of setting this variable when you lauch the application, for instance:

      > java -Dfile.encoding=UTF-8
      > java -Dfile.encoding=ASCII
      > java -Dfile.encoding=UTF-16
      > java -Dfile.encoding=Cp1252
      > java -Dfile.encoding=Cp500

热点排行