Ignore:
Timestamp:
2011-09-13T20:54:35+12:00 (13 years ago)
Author:
ak19
Message:

Dr Bainbridge fixed the unicode bug that Diego had found when using an hfile to specify the Hierarchy of a classifier. The hfile was so far being read as a regular cfg file read, but the read operation needed to read in UTF8 mode to preserve the encodings of characters in the file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/classify/HFileHierarchy.pm

    r23116 r24586  
    163163    my $subjectfile = $self->{'subjectfile'};
    164164    if (defined $subjectfile) {
    165     # read in the subject file
    166     my $list = &cfgread::read_cfg_file ($self->{'subjectfile'}, undef, '^[^#]?\S');
     165    # read in the subject file, but read in unicode mode to preserve special characters
     166    my $list = &cfgread::read_cfg_file_unicode ($self->{'subjectfile'}, undef, '^[^#]?\S');
    167167    # $list is a hash that is indexed by the descriptor. The contents of this
    168168    # hash is a list of two items. The first item is the OID and the second item
Note: See TracChangeset for help on using the changeset viewer.