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

    r12270 r13243  
    105105    }
    106106
     107       
    107108    return bless $self, $class;
    108109}
     
    397398    }
    398399
     400     
    399401    #create an empty text string so we don't break downstream plugins
     402    &gsprintf::output_strings_in_UTF8;
    400403    my $text = &gsprintf::lookup_string("{BasPlug.dummy_text}");
     404     
    401405    # include any metadata passed in from previous plugins
    402406    # note that this metadata is associated with the top level section
     
    418422    # add an OID
    419423    $doc_obj->set_OID();
    420     $doc_obj->add_text($section, $text);
     424    $doc_obj->add_utf8_text($section, $text);
    421425
    422426    # process the document
     
    430434      &util::rm($self->{'tmp_filename'})
    431435    }
     436
    432437    if (defined $self->{'tmp_filename2'} &&
    433438    -e $self->{'tmp_filename2'}) {
Note: See TracChangeset for help on using the changeset viewer.