Reader xslReader = new BufferedReader(new FileReader(xslID));
Reader xslReader = new BufferedReader(new InputStreamReader(new FileInputStream(xslID), "UTF-8"));
  public static void exampleFromReader(String sourceID, String xslID)    throws TransformerException, TransformerConfigurationException,           FileNotFoundException  {    // Create a transform factory instance.    TransformerFactory tfactory = TransformerFactory.newInstance();    // Note that in this case the XML encoding can not be processed!    Reader xslReader = new BufferedReader(new FileReader(xslID));    StreamSource xslSource = new StreamSource(xslReader);    // Note that if we don't do this, relative URLs can not be resolved correctly!    xslSource.setSystemId(xslID);    // Create a transformer for the stylesheet.    Transformer transformer = tfactory.newTransformer(xslSource);        // Note that in this case the XML encoding can not be processed!    Reader xmlReader = new BufferedReader(new FileReader(sourceID));    StreamSource xmlSource = new StreamSource(xmlReader);    // Note that if we don't do this, relative URLs can not be resolved correctly!    xmlSource.setSystemId(sourceID);        // Transform the source XML to System.out.    transformer.transform( xmlSource, new StreamResult(new OutputStreamWriter(System.out)));  }