- Timestamp:
- 2010-03-12T12:00:43+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/GettingStarted.java
r2626 r3122 7 7 import java.awt.BorderLayout; 8 8 import java.awt.EventQueue; 9 import java.io.UnsupportedEncodingException; 9 10 10 11 import javax.swing.JEditorPane; … … 68 69 Main.pref.putInteger("cache.motd.html.version", myVersion); 69 70 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 } 72 77 } 73 78 -
trunk/src/org/openstreetmap/josm/io/CacheCustomContent.java
r3083 r3122 8 8 import java.io.FileOutputStream; 9 9 import java.io.IOException; 10 import java.io.UnsupportedEncodingException; 10 11 import java.util.Date; 11 12 … … 117 118 public String updateForceString() { 118 119 updateForce(); 119 return new String(data); 120 try { 121 return new String(data,"utf-8"); 122 } catch(UnsupportedEncodingException e){ 123 e.printStackTrace(); 124 return ""; 125 } 120 126 } 121 127 … … 136 142 */ 137 143 public String getDataString() { 138 return new String(getData()); 144 try { 145 return new String(getData(), "utf-8"); 146 } catch(UnsupportedEncodingException e){ 147 e.printStackTrace(); 148 return ""; 149 } 139 150 } 140 151
Note:
See TracChangeset
for help on using the changeset viewer.