Changeset 29639 in osm for applications/editors/josm/plugins/osmarender/src/org
- Timestamp:
- 2013-06-07T01:05:24+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/osmarender/src/org/openstreetmap/josm/plugins/osmarender/OsmarenderPlugin.java
r29638 r29639 10 10 import java.io.FileReader; 11 11 import java.io.IOException; 12 import java.io.OutputStreamWriter; 12 13 import java.io.PrintWriter; 13 14 import java.util.HashSet; … … 74 75 try { 75 76 // write to plugin dir 76 OsmWriter w = OsmWriterFactory.createOsmWriter(new PrintWriter(new FileOutputStream(getPluginDir()+File.separator+"data.osm")), false, "0.6"); 77 OsmWriter w = OsmWriterFactory.createOsmWriter(new PrintWriter(new OutputStreamWriter( 78 new FileOutputStream(getPluginDir()+File.separator+"data.osm"), "UTF-8")), false, "0.6"); 77 79 w.header(); 78 80 … … 198 200 BufferedReader reader = new BufferedReader( 199 201 new FileReader( getPluginDir() + File.separator + "osm-map-features.xml") ); 200 PrintWriter writer = new PrintWriter( getPluginDir() + File.separator + "generated.xml" );201 202 // osm-map-fe taures.xml contain two placemark202 PrintWriter writer = new PrintWriter( getPluginDir() + File.separator + "generated.xml", "UTF-8"); 203 204 // osm-map-features.xml contain two placemark 203 205 // (bounds_mkr1 and bounds_mkr2). We write the bounds tag 204 206 // between the two
Note:
See TracChangeset
for help on using the changeset viewer.