Ignore:
Timestamp:
2010-03-12T12:00:43+01:00 (15 years ago)
Author:
Gubaer
Message:

fixed #4673: I18n: motd in russian not displayed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/GettingStarted.java

    r2626 r3122  
    77import java.awt.BorderLayout;
    88import java.awt.EventQueue;
     9import java.io.UnsupportedEncodingException;
    910
    1011import javax.swing.JEditorPane;
     
    6869            Main.pref.putInteger("cache.motd.html.version", myVersion);
    6970            Main.pref.put("cache.motd.html.lang", myLang);
    70 
    71             return motd.getBytes();
     71            try {
     72                return motd.getBytes("utf-8");
     73            } catch(UnsupportedEncodingException e){
     74                e.printStackTrace();
     75                return new byte[0];
     76            }
    7277        }
    7378
Note: See TracChangeset for help on using the changeset viewer.