- Timestamp:
- 08/17/12 09:31:13 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-misc/src/main/java/de/ugoe/cs/tasktree/keyboardmaps/KeyboardMap.java
r558 r563 11 11 import java.io.InputStream; 12 12 import java.io.InputStreamReader; 13 import java.io.UnsupportedEncodingException; 13 14 import java.util.ArrayList; 14 15 import java.util.HashMap; … … 164 165 throws IllegalArgumentException 165 166 { 166 BufferedReader in = new BufferedReader(new InputStreamReader(stream)); 167 BufferedReader in = null; 168 try { 169 in = new BufferedReader(new InputStreamReader(stream, "UTF-8")); 170 } 171 catch (UnsupportedEncodingException e) { 172 LOG.log(Level.WARNING, "no keyboard map available for locale " + locale, e); 173 throw new IllegalArgumentException 174 ("provided stream can not be read due to invalid encoding", e); 175 } 167 176 168 177 try {
Note: See TracChangeset
for help on using the changeset viewer.