]> git.evergreen-ils.org Git - Evergreen.git/commit
Protect dumb JavaScript engines from having to deal with actual Unicode
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 15 Apr 2011 20:13:46 +0000 (20:13 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 15 Apr 2011 20:13:46 +0000 (20:13 +0000)
commit2ac7df0113732fb2b4dac2a0fc77ca3f837240e5
tree08905c6d0aaae163eaf026a459e620620e604df6
parentcaed63544e6e167d04bea40d0050b71bd6e991af
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/trunk@20112 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm