From: Henri-Damien LAURENT Date: Thu, 8 Oct 2009 09:44:31 +0000 (+0200) Subject: Bug Fixing : C4::Charset source_encoding always set to iso-8859-1 X-Git-Tag: v3.02.00-alpha~54^2~169 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=7177a6528abc8a97aade6d5ab0e578c668752dab;p=koha.git Bug Fixing : C4::Charset source_encoding always set to iso-8859-1 --- diff --git a/C4/Charset.pm b/C4/Charset.pm index bffd374ff7..655d6c70da 100644 --- a/C4/Charset.pm +++ b/C4/Charset.pm @@ -139,7 +139,6 @@ sub MarcToUTF8Record { my $marc = shift; my $marc_flavour = shift; my $source_encoding = shift; - my $marc_record; my $marc_blob_is_utf8 = 0; if (ref($marc) eq 'MARC::Record') { @@ -216,7 +215,7 @@ sub MarcToUTF8Record { @errors = _marc_iso5426_to_utf8($marc_record, $marc_flavour); } else { # assume any other character encoding is for Text::Iconv - @errors = _marc_to_utf8_via_text_iconv($marc_record, $marc_flavour, 'iso-8859-1'); + @errors = _marc_to_utf8_via_text_iconv($marc_record, $marc_flavour, $source_encoding); } if (@errors) {