Ignore:
Timestamp:
2012-05-23T16:43:10+12:00 (12 years ago)
Author:
ak19
Message:

Needed xml declarations, with encoding set to utf-8, at the top of the buildConfig.xml and collectionConfig.xml files that get generated in order to view the UTF-8 contents of these files properly in editors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/bin/script/convert_coll_from_gs2.pl

    r14754 r25646  
    123123    my $buildwriter = new XML::Writer(OUTPUT => $buildoutput, NEWLINES => 1);
    124124   
     125    $buildwriter->xmlDecl("UTF-8");
    125126    $buildwriter->startTag('buildConfig', 'xmlns:gsf'=>"http://www.greenstone.org/greenstone3/schema/ConfigFormat");
    126127   
     
    128129    my $collwriter = new XML::Writer(OUTPUT => $colloutput, NEWLINES => 1);
    129130   
     131    $collwriter->xmlDecl("UTF-8");
    130132    $collwriter->startTag('CollectionConfig', 'xmlns:gsf'=>"http://www.greenstone.org/greenstone3/schema/ConfigFormat", 'xmlns:xsl'=>'http://www.w3.org/1999/XSL/Transform');
    131133   
Note: See TracChangeset for help on using the changeset viewer.