Bug 13579: Open history.txt using utf-8 encoding
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 14 Jan 2015 12:47:22 +0000 (13:47 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 14 Jan 2015 15:24:48 +0000 (12:24 -0300)
Test plan:
Verify about>Timeline is correctly encoded

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Replaced <encoding by <:encoding.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>

about.pl

index 7f0da61..9fd1545 100755 (executable)
--- a/about.pl
+++ b/about.pl
@@ -223,7 +223,7 @@ if ( defined C4::Context->config('docdir') ) {
     $docdir = C4::Context->config('intranetdir') . '/docs';
 }
 
-if ( open( my $file, "<", "$docdir" . "/history.txt" ) ) {
+if ( open( my $file, "<:encoding(UTF-8)", "$docdir" . "/history.txt" ) ) {
 
     my $i = 0;