Ignore:
Timestamp:
2006-11-13T15:49:38+13:00 (17 years ago)
Author:
shaoqun
Message:

fixed the encoding bug for BasPlug:dummy_text

File:
1 edited

Legend:

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

    r13222 r13243  
    742742        $self->process_text ($self->{'base_dir'}.$txtfile, $txtfile, $doc_obj, $self->{'current_section'});
    743743    } else {
    744         # otherwise add in some dummy text
    745         $doc_obj->add_text($self->{'current_section'}, &gsprintf::lookup_string("{BasPlug.dummy_text}"));
     744        # otherwise add in some dummy text
     745        #create an empty text string so we don't break downstream plugins
     746        &gsprintf::output_strings_in_UTF8;
     747        my $text = &gsprintf::lookup_string("{BasPlug.dummy_text}");
     748        $doc_obj->add_utf8_text($self->{'current_section'}, $text);
    746749    }
    747750    } elsif ($element eq "Metadata") {
Note: See TracChangeset for help on using the changeset viewer.