Select to view content in your preferred language

Error adding KML Layer

932
3
01-31-2011 08:53 PM
linusang
Emerging Contributor
Hi,

I hit an exception when the KML layer is trying to read a line that reads:

<name>Chaîne des Puys</name>


the "î" in the word "Chaîne" throws an exception.. an solutions for it?

thanks
0 Kudos
3 Replies
dotMorten_esri
Esri Notable Contributor
What exception are you getting? Could you share a sample app + kml that reproduces this error?
0 Kudos
linusang
Emerging Contributor
the kml is from http://www.volcano.si.edu/ge/gvp_world.kmz

just a simple
<esri:Map >
            <esri:ArcGISTiledMapServiceLayer Url="http://services.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer" />
            <esri:KmlLayer ID="KmlLayer" Url="uri to gvp_world.kml"
                           />

        </esri:Map>

would produce the error saying the character "î"  is not valid: (Invalid character in the given encoding. Line 84, position 10.)
0 Kudos
BjørnarSundsbø
Deactivated User

would produce the error saying the character "î"  is not valid: (Invalid character in the given encoding. Line 84, position 10.)


A bit late reply, but better with possibly answered posts than unresolved.....

I'm having a similar problem, where the file is in ANSI. A resolution is posted in another post. It could help you out.

Bjørnar Sundsbø
0 Kudos