From 4c86271bd9652c19f72728686452fb126ca67016 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 19 Oct 2014 19:09:58 +0200 Subject: Revert "Fix for rB61a330baca0f: Changed SVG file encoding from UTF-16 to UTF-8." This reverts commit 490f2aeb8247463a7ea1a86a3a8c4246fcf45f23. --- release/scripts/freestyle/modules/svg_export.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'release/scripts/freestyle') diff --git a/release/scripts/freestyle/modules/svg_export.py b/release/scripts/freestyle/modules/svg_export.py index 92149b703c1..09566730891 100644 --- a/release/scripts/freestyle/modules/svg_export.py +++ b/release/scripts/freestyle/modules/svg_export.py @@ -27,7 +27,7 @@ et.register_namespace("inkscape", "http://www.inkscape.org/namespaces/inkscape") et.register_namespace("sodipodi", "http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd") -# use utf-8 here to keep ElementTree happy +# use utf-8 here to keep ElementTree happy, end result is utf-16 svg_primitive = """ """ @@ -128,7 +128,7 @@ class SVGPathShader(StrokeShader): # write SVG to file indent_xml(root) - tree.write(self.filepath, encoding='UTF-8', xml_declaration=True) + tree.write(self.filepath, encoding='UTF-16', xml_declaration=True) # - Fill export - # class ShapeZ(BinaryPredicate1D): @@ -222,7 +222,7 @@ class SVGFillShader(StrokeShader): # write SVG to file indent_xml(root) - tree.write(self.filepath, encoding='UTF-8', xml_declaration=True) + tree.write(self.filepath, encoding='UTF-16', xml_declaration=True) def indent_xml(elem, level=0, indentsize=4): @@ -302,4 +302,4 @@ def write_animation(filepath, frame_begin, fps=25): # write SVG to file indent_xml(root) - tree.write(filepath, encoding='UTF-8', xml_declaration=True) + tree.write(filepath, encoding='UTF-16', xml_declaration=True) -- cgit v1.2.3