import java.io.File;
import java.io.IOException;
+import java.nio.charset.StandardCharsets;
import org.simantics.databoard.Bindings;
import org.simantics.db.Resource;
g.claimValue(transform, new double[] {1.0, 0.0, 0.0, 1.0, mposX, mposY}, Bindings.DOUBLE_ARRAY);
element = GraphUtils.create(g,
L0.InstanceOf, DIA.SVGElement,
- G2D.HasSVGDocument, new String(data),
+ G2D.HasSVGDocument, new String(data, StandardCharsets.UTF_8),
DIA.HasTransform, transform);
AddElement.claimFreshElementName(g, diagram, element);
} else if ("png".equals(suffix)) {