1.很简单,把properties文件进行native2ascii转成ascii编码

2.

Properties p = new Properties();

ByteArrayInputStream in = new ByteArrayInputStream(pageContent.getBytes(“UTF-8″));//pageContent是一个String

p.load(in);//in是一个InputStream流

//p.getProperty(“versionCode”);这样会乱码

//正确处理

new String(p.getProperty(“versionCode”).getBytes(Charset.forName(“ISO-8859-1″)), Charset  .forName(“UTF-8″));