Show
Ignore:
Timestamp:
16.02.2017 14:37:29 (3 years ago)
Author:
kjdon
Message:

lookup_string with extra '1' arg returns perl internal unicode aware text, so we use add_utf8_text so no encoding is done on it.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/BasePlugin.pm

    r30358 r31420  
    11181118    # add NoText metadata so we can hide this dummy text in format statements 
    11191119    $doc_obj->add_metadata($section, "NoText", "1"); 
    1120     $doc_obj->add_text($section, &gsprintf::lookup_string("{BasePlugin.dummy_text}",1)); 
     1120 
     1121    # lookup_string with extra '1' arg returns perl internal unicode aware text, so we use add_utf8_text so no encoding is done on it. 
     1122    $doc_obj->add_utf8_text($section, &gsprintf::lookup_string("{BasePlugin.dummy_text}",1)); 
     1123    #$doc_obj->add_text($section, &gsprintf::lookup_string("{BasePlugin.dummy_text}",1)); 
     1124     
    11211125     
    11221126}