mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-09-12 07:10:07 +02:00
Hack for wron encoding on UTF chars.
This commit is contained in:
parent
3895365d93
commit
5719e54091
@ -27,6 +27,7 @@ import org.jetbrains.annotations.Nullable;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.text.DateFormat;
|
import java.text.DateFormat;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
public class MindMapBean {
|
public class MindMapBean {
|
||||||
private Mindmap mindmap;
|
private Mindmap mindmap;
|
||||||
@ -123,7 +124,10 @@ public class MindMapBean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getXmlAsJsLiteral() throws IOException {
|
public String getXmlAsJsLiteral() throws IOException {
|
||||||
return this.mindmap.getXmlAsJsLiteral();
|
final String xmlAsJsLiteral = this.mindmap.getXmlAsJsLiteral();
|
||||||
|
|
||||||
|
// Firefox is failing for this. Need to be reviewed ...
|
||||||
|
return xmlAsJsLiteral.replace(Pattern.quote("\\u0000"),"");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getProperties() throws WiseMappingException {
|
public String getProperties() throws WiseMappingException {
|
||||||
|
Loading…
Reference in New Issue
Block a user