earthoutreach / kml-samples

Automatically exported from code.google.com/p/kml-samples
0 stars 0 forks source link

Update raises error when special characters (percent, degree sign, ...) are found in updated elements #307

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which products are affected?
Google Earth 5.1 (GE 5.0 also)

What steps will reproduce the problem?
1.Load a KMl file containing <name> or <description> using <NetworkLink>
2.Update <name> or <description> via <NetworkLinkControl>:
<Change><name>New name containing "%" or "°"</name></change>
3. Update fails

What is the expected output or behavior? What do you see instead?
GE 4.3 works fine

GE 5.1 will raise:
Error when parsing file: "http://... at line 2, column 0: 
Failed to create object <kml>

What application versions (if any) are you using?
GE 5.1

Which operating systems (and/or relevant web browsers) are affected?
Windows Vista

Please provide any additional information (code snippets/links) below.
Error is raised only on updates.

Initial KML documents loaded from disk or via <NetworkLink> can contains 
special characters, they are properly displayed:
<name>Initial name containing % or °</name>.

Replacing special characters with HTML codes ("°" -> "&#176;") solves the 
problem in <description>.

Original issue reported on code.google.com by g.ba...@gmail.com on 24 Sep 2009 at 5:42