Closed
Bug 778431
Opened 13 years ago
Closed 13 years ago
SVG saved as Unicode needing to be re-saved as UTF-8 or the SVG is broken
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: alan, Unassigned)
References
Details
Attachments
(1 file)
|
2.77 KB,
image/svg+xml
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1
Build ID: 20120713134347
Steps to reproduce:
Created a SVG file with Unicode characters and saved it as Unicode in NotePad2 and then uploaded it. Works fine in WebKit.
Actual results:
It somehow became corrupted. This file http://css-3d.org/images/digital-rain-test.svg gives a parsing error.
Opening this file in NoteTab Pro and re-saving it as UTF-8 fixes it. http://css-3d.org/images/digital-rain.svg
The attached file is my local copy. Offline, the bug does not happen.
Expected results:
That it works like WebKit.
| Reporter | ||
Comment 1•13 years ago
|
||
I should add that this only happens with SVGs that have strange characters to begin with.
(In reply to Alan Gresley from comment #0)
> It somehow became corrupted. This file
> http://css-3d.org/images/digital-rain-test.svg gives a parsing error.
That file is encoded as UTF-16 but the HTTP header says it's UTF-8:
Content-Type: image/svg+xml; charset=utf-8
| Reporter | ||
Comment 3•13 years ago
|
||
(In reply to mjh563 from comment #2)
> (In reply to Alan Gresley from comment #0)
> > It somehow became corrupted. This file
> > http://css-3d.org/images/digital-rain-test.svg gives a parsing error.
>
> That file is encoded as UTF-16 but the HTTP header says it's UTF-8:
>
> Content-Type: image/svg+xml; charset=utf-8
Thank you. Then my bug report is wrong. The initial saving must have been encoded UTF-16 and WebKit was just using it. Please feel welcome to remove this bug report.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•