Modified spine_labels.js to retain UTF-8 encoding
authorLiam Whalen <lwhalen@evergreen-dev.catalogue.nrcan.gc.ca>
Fri, 16 Sep 2011 12:52:08 +0000 (08:52 -0400)
committerDan Scott <dscott@laurentian.ca>
Thu, 29 Sep 2011 17:03:13 +0000 (13:03 -0400)
commit8de6c3bef0611abf1d0785297f0a77d4baf70834
treeb8f371ef15e658a687c7f9728598d0142aed9636
parent77c5ecb8d22355451c2f3756ea9a3cf7919e0e12
Modified spine_labels.js to retain UTF-8 encoding

Dan Wells posted a fix to the DEV list for receipt printing that allowed the
receipt printer to print UTF-8 characters.  I used the ideas in that fix to
modify spine_labels.js.  In spine_labels.js, the url passed to the preview in
preview_xul_192 was encoding the url with the javascript encode() function.
This function does not preserve UTF-8 encodings.  I changed the function to
encodeURIComponent, and UTF-8 characters are now displayed properly by the
spine label printer code.

Signed-off-by: Liam Whalen <lwhalen@evergreen-dev.catalogue.nrcan.gc.ca>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/xul/staff_client/server/cat/spine_labels.js