BufferedReader bf=new BufferedReader(new InputStreamReader(new ByteArrayInputStream("d=扎根".getBytes()),"utf-8")); props.load(bf); System.out.println(props.get("d"));
java 读取properties 中文乱码
最新推荐文章于 2024-06-01 14:37:13 发布
BufferedReader bf=new BufferedReader(new InputStreamReader(new ByteArrayInputStream("d=扎根".getBytes()),"utf-8")); props.load(bf); System.out.println(props.get("d"));