TPAC: Assume that templates are encoded in UTF-8 user/dbs/tpac_assume_utf8_templates
authorDan Scott <dscott@laurentian.ca>
Sat, 10 Dec 2011 15:43:47 +0000 (10:43 -0500)
committerDan Scott <dscott@laurentian.ca>
Sat, 10 Dec 2011 15:43:47 +0000 (10:43 -0500)
commit8be213cda5f5e00a44f47923d9fa65b4f1706a4d
treef476ef092aaa9618b0ab53594b68db1028ff2f31
parent3791aec127f76fe78d83fe508f38c6399cf01bbf
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>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm