title: I have a htm file can i read it as UTF-8 formatted file without doing anything to the file
body: <p>I have a htm file can i read it as UTF-8 formatted file without doing anything to the file.
  the file is saved in unicode(not sure) i want to read it as UTF-8 file other wise it gives me some boxes.. this has to be done using java </p>
  
  <pre><code>FileReader loInput = new FileReader(loFile); 
  BufferedReader loBufferReader = new BufferedReader(loInput); 
  String loLine; // String that holds current loFile loLine 
  int loCount = 0; // Line number of loCount 
  loLine = loBufferReader.readLine(); 
  loCount++; 
  while (loLine != null) { 
      loContent = loContent.concat(loLine); 
      loLine = loBufferReader.readLine(); 
      loCount++; 
  } 
  loBufferReader.close(); 
  </code></pre>
  
  <p>i tried this</p>
  
  <p><strong>EDIT:</strong> i have to get the data from HTML file and convert it into a DOM object for further processing </p>
  
  <p>I am using </p>
  
  <pre><code>SAXBuilder loSaxBuilder=new SAXBuilder();
              Reader loStringReader=new StringReader(loContent);
              Document loDoc=loSaxBuilder.build(loStringReader);
              XPath loXpath = XPath.newInstance("/Div");
              Element loElement = (Element) loXpath.selectSingleNode(loDoc);
  </code></pre>
  
  <p>to convert it to dom object</p>