Im trying to load a kml file into GE and always get the following
error
Parse error at line 1, column 0: unknown encoding
This error is issued when trying to load any kml file even the
myplaces.kml that GE automatically creates.
Prior to this problem I had no problem writing and displaying KML and
KMZ files in GE
system details
Google Earth 5.1.3534.0411
Build Date Mar 26, 2010
Build Time 2:17:50 pm
Renderer OpenGL
Operating System Mac OS X (10.6.3)
Video Driver NVIDIA GeForce 8600M GT OpenGL Engine (2.1 NVIDIA-1.6.10)
Max Texture Size 8192x8192
Server kh.google.com
Thanks
Jake
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
I have checked that the kml file has those lines many times and as I
mentioned a KML file written by GE (myplaces.kml saved under ~/Library/
Application Support/Google Earth on Mac OSX)
fails to load.
When I turn KML error handling on in GE it says
Error while parsing file '/foo/test.kml' at line 2, column 0
Unknown Encoding <chinese characters >
It seems that I have a valid kml file, (ive tried files downloaded
from GE gallery and I use KML validation in my text editor) but still
cannot open in GE
I have also reinstalled GE multiple times.
Thanks
Jake
If you post the KML under "Files", we can take a look to better help
you.
I just uploaded the myplaces.kml file to Files. This is the file
written by GE so theoretically there should be no foreign characters
(?) and GE should have no problem parsing files it constructs.
I feel as tho my problem is a little more insidious than simple stray
foreign characters, especially since 1) all KML files (even gallery
examples) tried result in a parse error 2) this not the first time
writing my own KML files and 3) ive had much success prior to this
parsing issue.
Thanks for the help and quick responses
Jake