Changeset 3704 for trunk/niupepa


Ignore:
Timestamp:
2003-01-22T13:52:31+13:00 (21 years ago)
Author:
sjboddie
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/niupepa/perllib/plugins/NPPlug.pm

    r3703 r3704  
    399399        }
    400400        close FILE;
    401         if ($foundbody) {return &unicode::ascii2utf8(\$text);}
    402         else {return &unicode::ascii2utf8(\$savedtext);}
     401        if (!$foundbody) {$text = $savedtext;}
     402        if ($filename =~ /\.(commentary|abstract)$/i) {
     403        # commentaries and abstracts should already be utf8
     404        return $text;
     405        } else {
     406        # a few extended ascii characters have snuck through
     407        # in some text files so we need to convert them to utf8
     408        return &unicode::ascii2utf8(\$text);
     409        }
    403410
    404411    } else {
     
    408415        }
    409416        close FILE;
     417        # a few extended ascii characters have snuck through
     418        # in some text files so we need to convert them to utf8
    410419        return &unicode::ascii2utf8(\$text);
    411420    }
Note: See TracChangeset for help on using the changeset viewer.