btel / svg_utils

Python tools to create and manipulate SVG files
MIT License
313 stars 88 forks source link

UnicodeDecodeError: svgutils.transform.fromfile not able to read the svgfile generated by inkscape #77

Open MChetanSR opened 3 years ago

MChetanSR commented 3 years ago

This seems to be an issue with lxml. I couldn't report issue on their repo. The same file could be parsed by python's inbuilt xml.etree.ElementTree.parse(fpath) without any issue. May be svg_file = etree.parse(fid, parser=etree.XMLParser()) in line 354 of transform.py could be modified to resolve this.

hartwork commented 3 years ago

@MChetanSR please provide more details (like a backtrace, a minimal reproducible example file, details about versions and the environment) to make this a proper bug report. Right now, it doesn't seem actionable to me.