Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Include encoding in .svg header #3809

Closed
robocoder opened this Issue · 3 comments

2 participants

Anthon Pang Matthieu Aubry
Anthon Pang
Collaborator

The fix in [7873deb] doesn't entirely resolve the issue with .svg files not being served correctly.

On older Apache servers, there is no mime-type defined for svg+xml.

On Ubuntu 12.04, the Apache server's "magic" file expects the header to conform to:

0   string      \<?xml
>38 string      \<\!DOCTYPE\040svg  image/svg+xml

This ticket is to update all .svg files to have the following header:

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg  PUBLIC '-//W3C//DTD SVG 1.1//EN'  'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'>

Currently, the UserCountry .svg files have:

<?xml version="1.0" ?><!DOCTYPE svg  PUBLIC '-//W3C//DTD SVG 1.1//EN'  'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'>

while logo.svg has no header.

Anthon Pang
Collaborator

In 266da1c: fixes #3809 - add encoding to .svg files

Anthon Pang
Collaborator

In 9290d17: refs #3809 - remove magic file

Matthieu Aubry
Owner

I didn't notice it before, nice fix.

Anthon Pang robocoder added this to the 1.12 - The Great 1.x Backlog milestone
Anthon Pang robocoder self-assigned this
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.