Ignore:
Timestamp:
2010-11-26T12:09:53+13:00 (13 years ago)
Author:
davidb
Message:

More careful use of encoding parameter to $self->set_Source_metadata so it reflects the *filename* encoding that Greenstone has worked out, not the encoding for the *content* of the file, which of course could be completely different!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/DatabasePlugin.pm

    r18327 r23349  
    270270        $doc_obj->add_utf8_metadata($cursection, "Encoding", $encoding);
    271271    }
    272     $self->set_Source_metadata($doc_obj, $db, $encoding);
     272
     273    my $plugin_filename_encoding = $self->{'filename_encoding'};
     274    my $filename_encoding = $self->deduce_filename_encoding($file,$metadata,$plugin_filename_encoding);
     275    $self->set_Source_metadata($doc_obj, $db, $filename_encoding);
    273276
    274277    if ($self->{'cover_image'}) {
Note: See TracChangeset for help on using the changeset viewer.