svgo-inkscape icon indicating copy to clipboard operation
svgo-inkscape copied to clipboard

Text element with UTF-8 can't be saved

Open MarkJeronimus opened this issue 7 years ago • 3 comments

Text element with unicode can't be saved:

Traceback (most recent call last): File "svgo.inkscape.py", line 75, in e.affect(output=False) File "D:\0syncedSSD\Portable Progs\InkscapePortable x64\App\Inkscape\share\extensions\inkex.py", line 268, in affect self.effect() File "svgo.inkscape.py", line 70, in effect sys.stdout.write(result.encode("UTF-8")) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 128197: ordinal not in range(128)

0xC3 is the beginning of UTF-8 codepoint \xC3\x97 (this character: ×)

MarkJeronimus avatar Feb 02 '18 19:02 MarkJeronimus

Same issue while optimizing SVG using svgo

Traceback (most recent call last): File "svgo.inkscape.py", line 75, in e.affect(output=False) File "C:\Program Files\Inkscape\share\extensions/inkex.py", line 283, in affect self.effect() File "svgo.inkscape.py", line 70, in effect sys.stdout.write(result.encode("UTF-8")) UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 5401098: ordinal not in range(128)

image

smartcodingxx avatar Jun 11 '18 06:06 smartcodingxx

could you try in the last release?

juanfran avatar Jun 12 '18 15:06 juanfran

I had the same problem and the new release fixed it for me. Great :)

tzeumer avatar Jun 25 '18 18:06 tzeumer