Protect dumb JavaScript engines from having to deal with actual Unicode
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 15 Apr 2011 20:18:05 +0000 (20:18 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 15 Apr 2011 20:18:05 +0000 (20:18 +0000)
commitd223c0ed74df866320d0a298ddea26b8f2f43e66
tree9facf13d0d862689d6dd475f9e7144614dff897f
parentb4e0ac3b851b5662da6635674c711e5389d8fa3c
Protect dumb JavaScript engines from having to deal with actual Unicode

The holdings_xml format did not include an XML declaration, but adding that
as we do here still does not make the Firefox and Chromium JS engines capable
of consuming XML that contains Unicode content outside of the base ASCII
range.

So, we invoke entityize() to convert anything outside of the realm of
ASCII to XML entities. An alternative would be to invoke entityize() in
OpenILS::Application::SuperCat::unAPI::acn but it's not clear if that
would interfere with any other uses.

With this change, library names / copy location names with Unicode content
can be displayed correctly on the search results page.

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@20114 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm