Forum Moderators: phranque
I am trying to use a Google Earth kml xml file originally created on my PC (used to display a route on a Google Earth Map)on my webserver. It doesn't work.
When I upload the file to my server and try to validate via feedvalidator.org I get several error messages for example this: Your feed appears to be encoded as "UTF-8", but your server is reporting "US-ASCII"
But how do I handle this? Should I convert the file from the PC to ASCII before uploading, and if yes how? Or do I need to change some settings on the server, and if the latter, is this done in apache/PHP?
Thanks!
AddType application/vnd.google-earth.kml+xml kml
AddType application/vnd.google-earth.kmz kmz
Now, a call to a .kml file in the directory makes it open via the Google Earth application on the PC. It seems to work o.k. from a PC, but not from a Joomla GE plugin run on the server.
The script still validates as before when validating via feedvalidator.org.
Have not been able to find out how to possibly use AddEncoding. Could you possibly advice on the syntax for a .kml file?
AddCharset UTF-8 .kml
Jim