kml and encoding

520
1
11-24-2011 06:20 AM
helgesmebye
New Contributor
I am trying to add a kml file to my silverlight project (2.3 api).
The project crashes with "An unhandled exception +++".

After downloading the kml file from
http://www.npd.no/engelsk/cwi/pbl/en/aFactGlobe/pl/All_polygons.kml

I found that changing the encoding from windows-1252 to UTF-8 did the trick.

Can I configure the client to accept this encoding so that I can read the kmlfile from the source?

-thanks
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
Can I configure the client to accept this encoding so that I can read the kmlfile from the source?


Unfortunately no.
Silverlight doesn't support 'windows-1252', and neither do the ArcGIS SL API.

The workaround is you to get the kml layer sources on codeplex, and that you manage the 'windows-1252' encoding by yourself.
0 Kudos