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

    r22655 r23349  
    345345
    346346    my ($filemeta) = $file =~ /([^\\\/]+)$/;
    347     $self->set_Source_metadata($doc_obj, $filemeta);
     347    my $plugin_filename_encoding = $self->{'filename_encoding'};
     348    my $filename_encoding = $self->deduce_filename_encoding($file,$metadata,$plugin_filename_encoding);
     349    $self->set_Source_metadata($doc_obj, $filemeta, $filename_encoding);
    348350   
    349351    if ($self->{'cover_image'}) {
Note: See TracChangeset for help on using the changeset viewer.