Changeset 7573


Ignore:
Timestamp:
2004-06-09T11:56:20+12:00 (20 years ago)
Author:
mdewsnip
Message:

Now writes the Hierarchy hfiles out as UTF-8 correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/msm/MetadataSetManager.java

    r7540 r7573  
    13021302        File out_file = new File(etc_dir + element.getName() + ".txt");
    13031303        FileOutputStream fos = new FileOutputStream(out_file);
    1304         OutputStreamWriter osw = new OutputStreamWriter(fos);
     1304        OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8");
    13051305        BufferedWriter bw = new BufferedWriter(osw, Utility.BUFFER_SIZE);
    13061306        Vector all_values = model.traverseTree();
     
    13111311        String index = model.getHIndex(full_value);
    13121312
    1313         write(bw, "\"" + Utility.stripNL(full_value) + "\"\t" + index + "\t\"" + Utility.stripNL(node.toString(GValueNode.GREENSTONE)) + "\"");
     1313        write(bw, "\"" + full_value + "\"\t" + index + "\t\"" + node.toString(GValueNode.GREENSTONE) + "\"");
    13141314        }
    13151315        // Very important we do this, or else buffer may not be flushed
Note: See TracChangeset for help on using the changeset viewer.