Properties读取中文乱码解决方案
<h2>Properties读取中文乱码解决方案</h2>
<pre><code>String result;
InputStream in;
in =mContext.getAssets().open(&quot;customer_name.cfg&quot;);//获取到输入流
Properties props=new Properties();
props.load(in);
result=props.getProperty(&quot;key&quot;);//key是键
result=new String(result.getBytes(&quot;ISO-8859-1&quot;), &quot;utf-8&quot;);//这一句是重点
System.out.println(result);</code></pre>