[Koha-bugs] [Bug 11290] members-home.pl displays badly if using non english templates and have a utf8 char in categorycode description

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 25 09:44:50 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11290

--- Comment #6 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
Just an additional observation:

This seems to work for me too. I tested a few combinations including Latin
diacritics, and some Chinese characters in the patron category as well as in
the members template text. The following remark on Apache::Util did however not
fully reassure me:

Apache::Util, escape_html says: [This function will correctly escape US-ASCII
output. If you are using a different character set such as UTF8, or need more
control on the escaping process, use HTML::Entities.]

Note that Template Toolkit (at least version 2.87) does however first try
Apache::Util and only if that is not available, HTML::Entities.

Just under the assumption that HTML::Entities would do a better job, we could
do the following, forcing TT to use it:
use Template::Filters;
Template::Filters->use_html_entities;
(That would make HTML::Entities a Koha dependency.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list