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:48 +0000 (00:35 -0500)
commitf74a2ee9380fc9c30dfad7f03390d53229a2a899
treed54dd41c82bc86a114c107d49f1f206ec84345ca
parentd22b66ccd0b64f862f302db5534f550d05528683
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