]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Fix foreign character display in receipts
authorDan Wells <dbw2@calvin.edu>
Tue, 6 Nov 2012 21:32:23 +0000 (16:32 -0500)
committerBen Shum <bshum@biblio.org>
Tue, 18 Dec 2012 05:35:42 +0000 (00:35 -0500)
commit0ad4dd6d7f856dbc5ccf6bce5f3ab74d13898396
treed46794bd42c7382c4d121fde751ca3e5bab050bd
parent5134977a87331b39dd4db0c1dae4386bdbfc9664
Fix foreign character display in receipts

This commit makes two changes to the staff client print code to
help with the proper display of foreign characters:

1) Specify the utf-8 charset in the receipt Data URIs.
2) Properly encode the entire data string using encodeURIComponent
rather than encode().  Failing to do so was causing XULRunner to
be "creative" with the interpretation of the data.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/xul/staff_client/chrome/content/util/print.js