Kokelin tuota kartan nimen vaihtoa käsin. Muutin comment kenttää. Kun käynnistin ohjelman uudestaan, näkyi uusi nimi. Skandiongelma tulee, koska encoding="utf-8". Jos nimessä on skandeja, pitää tiedosto tallettaa utf-8 muodossa. Sitten kun tuo tehdään ohjelmassa, ei tuota ongelmaa ole.
<?xml version="1.0" encoding="utf-8"?>
<MapScale xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Name>WARN_Letrunkyla.jpg</Name>
<Comment>Uusi kalibroimaton kartta</Comment>
<Latitude>61.591126666666668</Latitude>
<Longitude>26.914878333333334</Longitude>
<CoordinateX>2225</CoordinateX>
<CoordinateY>3355</CoordinateY>
<Width>3934</Width>
<Height>3946</Height>
<Scale>2.531493</Scale>
<Rotation>0.036296549774831988</Rotation>
</MapScale>
<?xml version="1.0" encoding="utf-8"?>
<MapScale xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Name>WARN_Letrunkyla.jpg</Name>
<Comment>Letrunkylä</Comment>
<Latitude>61.591126666666668</Latitude>
<Longitude>26.914878333333334</Longitude>
<CoordinateX>2225</CoordinateX>
<CoordinateY>3355</CoordinateY>
<Width>3934</Width>
<Height>3946</Height>
<Scale>2.531493</Scale>
<Rotation>0.036296549774831988</Rotation>
</MapScale>

Talletus utf-8 muodossa.

Ylläolevassa kuvassa näkyy uusi nimi.
Just do it!
Edited by - jappe on 02/12/2006 09:53:12