title: How will append a utf-8 string to a properties file
body: <p>How will append a utf-8 string to a properties file. I have given the code below. </p>
  
  <pre><code>public  static void addNewAppIdToRootFiles() {
  Properties properties = new Properties();       
     try {
         FileInputStream fin = new FileInputStream("C:\Users\sarika.sukumaran\Desktop\root\root.properties");
         properties.load(new InputStreamReader(fin, Charset.forName("UTF-8")));
         String propertyStr = new String(("قسيمات").getBytes("iso-8859-1"), "UTF-8");
         BufferedWriter bw = new BufferedWriter(new FileWriter(directoryPath + rootFiles, true));
         bw.write(propertyStr);
         bw.newLine();
         bw.flush();
         bw.close(); 
         fin.close();           
  
     } catch (Exception e) {
         System.out.println("Exception : " + e);
     }
  } 
  </code></pre>
  
  <p>But when I open the file, the string I have written "قسيمات"  to the file shows as "??????". Please help me.</p>