Some data URIs don't define character set

Bug #1195334 reported by Pasi Kallinen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Undecided
Unassigned

Bug Description

*EG master

Some iframes and new windows use data URIs for the contents, but do not define the charset. The charset defaults to US-ASCII, and will cause problems with UTF-8 text.

Fix at user/paxed/data-uri-charsets - it also changes relevant escape() calls to encodeURIComponent() ones (so the UTF-8 character stay intact), and fixes the print template macro help window size.

Pasi Kallinen (paxed)
tags: added: pullrequest
Revision history for this message
Pasi Kallinen (paxed) wrote :
Pasi Kallinen (paxed)
Changed in evergreen:
milestone: none → 2.5.0-m2
Changed in evergreen:
assignee: nobody → Jason Etheridge (phasefx)
Revision history for this message
Jason Etheridge (phasefx) wrote :

Works for me, committed to master. There was one change not dealing with UTF-8, with the Macros button in the receipt template editor, and that was removing some inline CSS and replacing it with a change to how we invoke window.open, which is fine with me.

Thanks Pasi!

Changed in evergreen:
status: New → Fix Committed
Dan Wells (dbw2)
Changed in evergreen:
assignee: Jason Etheridge (phasefx) → nobody
Ben Shum (bshum)
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.