arthurgera / osmbonuspack

Automatically exported from code.google.com/p/osmbonuspack
0 stars 0 forks source link

KmlDocument.saveAsKML(File file) will not encode special characters #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load a KML with (encoded) special characters like "&" in its name 
element (child of placemark) with parseURL().
2. Save the KML with saveAsKML(File file).

What is the expected output? What do you see instead?
Special characters should be UTF-8 encoded, but they aren't. That's why 
parseKML() will fail.

What version of the products are you using (Android SDK, osmdroid,
OSMBonusPack)?

Android 4.4.2
osmdroid 4.2
osmbonuspack 4.6

Please provide any additional information below.
Example: 
http://mapsengine.google.com/map/kml?mid=z-FHHwDvg_C0.kC5U0c6yro5Q&lid=z-FHH
wDvg_C0.kivCbpNKk6CI 

Original issue reported on code.google.com by onkela...@googlemail.com on 20 Jul 2014 at 7:29

GoogleCodeExporter commented 9 years ago
Effectively, there was no escaping for name element, and others (like icon 
hrefs). 
Fix is now commited in the source. 
New release (4.7) should land before end of week. 

Original comment by mathieu....@gmail.com on 21 Jul 2014 at 8:13

GoogleCodeExporter commented 9 years ago
Thank you! :)

Original comment by onkela...@googlemail.com on 24 Jul 2014 at 7:09