Ignore:
Timestamp:
2006-09-06T14:24:13+12:00 (18 years ago)
Author:
kjdon
Message:

make sure the output filename to use in the conversion is in utf-8, otherwise non-utf-8 chars get added to doc.xml, and parsing craps out

File:
1 edited

Legend:

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

    r12169 r12688  
    268268    $tailname =~ s/\.+//g;
    269269    $tailname =~ s/\-+//g;
     270
     271    # convert to utf-8 otherwise we have problems with the doc.xml file
     272    # later on
     273    &unicode::ensure_utf8(\$tailname);
     274
    270275    $suffix = lc($suffix);
    271276    my $tmp_filename = &util::filename_cat($tmp_dirname, "$tailname$suffix");
     
    342347    $output_filename =~ s/$suffix$/.$output_type/;
    343348    }
     349   
    344350    return $output_filename;
    345351}
Note: See TracChangeset for help on using the changeset viewer.