Cannot load SVG file into Inkscape

Posted on 2006-06-04
Last Modified: 2011-09-20
I have opened and edited an SVG file that was created by Inkscape ( in Notepad.

After saving the result, I cannot load it back into Inkscape. I was very careful that I saved it as UTF-8. I also checked that all <>'s and ""'s matched.
When loading the file into Inkscape I get the message "Failed to load the selected file <FILE>". Adobe Illustrator just shows an empty page. In Firefox the file loads, but with the wrong fonts, but that's normal.

In Inkscapes log file, it only says: "Failed to load the selected file <FILE>"
Thanks, that really helps. >>;-E

I just have no idea what I did wrong. Do you have any idea?

Question by:asciiman
    1 Comment
    LVL 19

    Accepted Solution

    This problem is caused by a feature of Notepad. When you save as UTF-8, it adds a BOM header to the file, but Inkscape, among lots of other programs,  doesn't like this header. This is not really a bug per se, just a side effect of using Notepad to edit something other than plain text. SVG files are a tagged file format, and the BOM header is only required in untagged files, where the document itself doesn't contain information about the encoding used. The BOM isn't necessary for SVG files saved by Inkscape, because the UTF-8 encoding is specified in the XML header. If you have a hex editor, open the file up, and you'll see the BOM as a couple of bytes at the beginning of the file. They're invisible in notepad, but they're there.

    Maybe this should be brought to the attention of the Inkscape developers, I dunno.

    More info...  


    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    Suggested Solutions

    Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
    Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
    In this tutorial viewers will learn how to create blended and gradiated shapes in Illustrator using the blend tool Draw two shapes, one of them in a different color: Select both and create a blend by going to Object > Blend > Make: Blends can also b…
    Learn how to create interesting presentations by including videos to keep your audience engaged using Prezi. Select "Insert" from the top menu in your Prezi editor: Select "YouTube Video": Paste the video URL into the prompt: "Select "Insert":…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now