Ignore:
Timestamp:
2003-07-01T15:09:15+12:00 (21 years ago)
Author:
jrm21
Message:

use add_metadata instead of add_utf8_metadata for Source and URL
metadata. If it's already utf8 it might get corrupted, but that's better
than making invalid xml.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/BasPlug.pm

    r4785 r4845  
    495495    $doc_obj->add_utf8_metadata($doc_obj->get_top_section(), "Encoding", $encoding);
    496496    my ($filemeta) = $file =~ /([^\\\/]+)$/;
    497     $doc_obj->add_utf8_metadata($doc_obj->get_top_section(), "Source", &ghtml::dmsafe($filemeta));
     497    # how do we know what encoding the filename is in?
     498    $doc_obj->add_metadata($doc_obj->get_top_section(), "Source", &ghtml::dmsafe($filemeta));
    498499    if ($self->{'cover_image'}) {
    499500    $self->associate_cover_image($doc_obj, $filename);
Note: See TracChangeset for help on using the changeset viewer.