mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-21 21:57:56 +01:00
Fixing encoding error when importing files
This commit is contained in:
parent
89b2a871e2
commit
47793ec4e2
@ -38,6 +38,7 @@ import javax.xml.bind.JAXBException;
|
||||
import java.io.InputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.*;
|
||||
import java.math.BigInteger;
|
||||
|
||||
@ -86,7 +87,7 @@ public class FreemindImporter
|
||||
JAXBUtils.saveMap(mindmapMap,out,"com.wisemapping.xml.mindmap");
|
||||
|
||||
map = new MindMap();
|
||||
map.setNativeXml(out.toString());
|
||||
map.setNativeXml(new String(out.toByteArray(), Charset.forName("UTF-8")));
|
||||
map.setTitle(mapName);
|
||||
map.setDescription(description);
|
||||
map.setNativeBrowser(new MindMapNative());
|
||||
|
Loading…
Reference in New Issue
Block a user