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/OAIPlugin.pm

    r23212 r23349  
    297297   
    298298    my ($filemeta) = $file =~ /([^\\\/]+)$/;
    299     $self->set_Source_metadata($doc_obj, $filemeta, $encoding);
     299    my $plugin_filename_encoding = $self->{'filename_encoding'};
     300    my $filename_encoding = $self->deduce_filename_encoding($file,$metadata,$plugin_filename_encoding);
     301    $self->set_Source_metadata($doc_obj, $filemeta, $filename_encoding);
     302
    300303    $doc_obj->add_utf8_metadata($top_section, "Language", $language);
    301304    $doc_obj->add_utf8_metadata($top_section, "Encoding", $encoding);
Note: See TracChangeset for help on using the changeset viewer.