TPAC: Assume that templates are encoded in UTF-8
authorDan Scott <dscott@laurentian.ca>
Sat, 10 Dec 2011 15:43:47 +0000 (10:43 -0500)
committerBill Erickson <berick@esilibrary.com>
Fri, 16 Dec 2011 18:12:24 +0000 (13:12 -0500)
commit5f1742e1556d3631fe797ee79137b706d8e1e9ee
tree44d8dac04aabdec9b91bb857f074a1ae94890f75
parenteaba45621b11324ea40b49e60d435c9977428299
TPAC: Assume that templates are encoded in UTF-8

Per http://template-toolkit.org/docs/faq/index.html
under "Why do I get rubbish for my utf-8 templates?", Template::Toolkit
does not assume that templates are encoded in UTF-8, which runs counter
to current assumptions circa 2011.

Practically, this means that before this change any UTF8 characters
used for purposes such as Unicode art or otherwise would be garbled in
the generated Web page. This commit tells Template::Toolkit to assume
that the templates are UTF8 without forcing us to monkey with byte-order
markers.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm