Changeset 6573


Ignore:
Timestamp:
2004-01-21T16:48:50+13:00 (20 years ago)
Author:
mdewsnip
Message:

Added code to treat strings from the dictionary as UTF-8.

File:
1 edited

Legend:

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

    r6566 r6573  
    282282    try {
    283283        String initial = dictionary.getString(key);
     284
    284285        // If the string contains arguments we have to insert them.
    285286        String complete = "";
     
    324325        }
    325326        }
    326         return complete + initial;
     327        complete = complete + initial;
     328
     329        String unicode = null;
     330        try {
     331        unicode = new String(complete.getBytes(), "UTF-8");
     332        }
     333        catch (Exception ex) {
     334        System.err.println("Something bad. " + ex);
     335        Gatherer.printStackTrace(ex);
     336        return initial;
     337        }
     338        return unicode;
    327339    }
    328340    catch (Exception e) {
Note: See TracChangeset for help on using the changeset viewer.