Can't open .svg createt by gnuplot

Discuss SVG code, accessible via the XML Editor.
Ede_123

Can't open .svg createt by gnuplot

Postby Ede_123 » Thu Nov 12, 2009 8:38 am

Hey All,

i can't open the following .svg file I createt using gnuplot's svg-Terminal:
http://www.speedshare.org/download.php?id=9089A78B11

I'm using latest prebuilt Inkscape development-build for Windows (devel 22040)

Do you now what the problem is? Is it Inkscape's or Gnuplot's fault? Is it correctable?

Thanks in advance,
Ede


P.S.: I'm not very confident with .svg or .xml file formats. So plese be patient ;)

User avatar
tomh
Posts: 218
Joined: Sat Feb 14, 2009 10:14 pm

Re: Can't open .svg createt by gnuplot

Postby tomh » Sat Nov 14, 2009 6:21 am

Hi, sorry for taking time to reply, I don't check this forum that often...

The problem with the file is the two non-English letters (the degree symbol and the umlaut? on the led colour).
When I opened the file in Firefox, it showed two diamond ? marks where they were meant to go, which suggests an encoding error...

edited file here (without the problem letters): http://www.speedshare.org/download.php?id=04988FEE11

still not sure who's fault it is, although at least one other program couldn't cope with the file... might be a good idea to submit a bug report

hope that helps.

Ede_123

Re: Can't open .svg createt by gnuplot

Postby Ede_123 » Sat Nov 14, 2009 10:52 am

Thanks tomh, this was in fact the problem. Didn't think of something like that before.

In case others experience this problem here's the solution:
  • reason why Inkscape isn't able to display the file is a wrong text encoding (although I don't know if two single characters with wrong encoding should be able to confuse Inkscape so much that it isn't able to diplay the file at all)
  • Setting "set encoding iso_8859_15" in Gnuplot (iso_8859_15 is some western charset with umlauts and the €-Symbol) solved the problem, the file displays now fine in both, Inkscape and Firefox
  • Only change in .svg was in the header:
    <?xml version="1.0" encoding="utf-8" standalone="no"?> changed to <?xml version="1.0" encoding="iso-8859-15" standalone="no"?>


Return to “SVG / XML Code”