Well, after I did not receive the answer, I finally found the answer:
ExporterOutput reportOutput;
reportOutput = new SimpleHtmlExporterOutput(reportFile,"ISO-8859-1");
Where reportFile is the url string of my new file, and the encoding is simply placed as the second parameter to the constructor. This only works for exporting HTML.
source
share