mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 06:07:57 +01:00
Fix encodding issues in tests.
This commit is contained in:
parent
c1ed44d627
commit
c328a65d97
@ -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);
|
||||
}
|
||||
|
0
wise-webapp/src/test/data/wisemaps/simple-maps.mmr
Normal file
0
wise-webapp/src/test/data/wisemaps/simple-maps.mmr
Normal 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();
|
||||
|
Loading…
Reference in New Issue
Block a user