Changeset 16954 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2020-08-29T07:53:12+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/GeoJSONReader.java
r16948 r16954 386 386 ds.setUploadPolicy(UploadPolicy.DISCOURAGED); 387 387 if (isLineDelimited(markSupported)) { 388 BufferedReader reader = new BufferedReader(new InputStreamReader(markSupported ));388 BufferedReader reader = new BufferedReader(new InputStreamReader(markSupported, StandardCharsets.UTF_8)); 389 389 String line = null; 390 390 String rs = new String(new byte[]{RECORD_SEPARATOR_BYTE}, StandardCharsets.US_ASCII); … … 392 392 while ((line = reader.readLine()) != null) { 393 393 line = line.replaceFirst(rs, ""); 394 try (InputStream is = new ByteArrayInputStream(line.getBytes( ))) {394 try (InputStream is = new ByteArrayInputStream(line.getBytes(StandardCharsets.UTF_8))) { 395 395 parse(is); 396 396 }
Note:
See TracChangeset
for help on using the changeset viewer.