Fix encodding issues in tests.

This commit is contained in:
Paulo Gustavo Veiga 2011-07-03 17:36:30 -03:00
parent c1ed44d627
commit c328a65d97
3 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ public class FreemindExporter
public void export(MindMap map, OutputStream outputStream) throws ExportException {
try {
export(map.getUnzippedXml().getBytes(), outputStream);
export(map.getUnzippedXml().getBytes("UTF-8"), outputStream);
} catch (IOException e) {
throw new ExportException(e);
}

View File

@ -72,7 +72,7 @@ public class ImportExportTest {
private String readFile(@NotNull File file) throws IOException {
// Load rec file co
final FileInputStream fis = new FileInputStream(file);
final InputStreamReader isr = new InputStreamReader(fis);
final InputStreamReader isr = new InputStreamReader(fis,"UTF-8");
final BufferedReader br = new BufferedReader(isr);
final StringBuilder result = new StringBuilder();