Rick Welykochy a écrit :
> Exactly where is it needed?
>
> Is it required for web page output to stdout?
>
If i'm not mistaken, HTML::Template::Pro take cares of that (it was not
the case of HTML::Template)
> Is it required when Koha creates a CSV file as output?
>
yes.
--
Paul POULAIN
htt
Sébastien Nadeau wrote:
> " To mark FILEHANDLE as UTF-8, use :utf8 or :encoding(utf8) . :utf8 just
> marks the data as UTF-8 without further checking, while :encoding(utf8)
> checks the data for actually being valid UTF-8. More details can be found in
> PerlIO::encoding. "
> This quote
Rick --
That is just one form that happens to be used for existing filehandles. You
can also find similar code in "open" statements (see rebuild_zebra.pl) and
the same code in different forms like:
binmode(STDOUT,":utf8");
We should setting it (or something like it) where needed.
--Joe
On Sun,
e la part de Rick
> Welykochy
> Envoyé : 14 décembre 2008 14:52
> À : koha-devel@lists.koha.org
> Objet : [Koha-devel] binmode in pler scripts for utf-8 support
>
> Hi all,
>
> I ran across this bit of randomness today:
>
> binmode STDOUT, ":utf8"
Hi all,
I ran across this bit of randomness today:
binmode STDOUT, ":utf8";
It occurs in only three perl scripts in Koha:
./circ/ysearch.pl
./misc/sax_parser_test.pl
./reports/guided_reports.pl
Should this binmode setting be executed in all of our perl scripts
to provide correct utf-8 supp