On Dec 27, 9:26 am, cycletourer <[email protected]> wrote:
> Hi there,
>
> I have a Google map showing the Norwegian road 
> tunnelshttp://www.cycletourer.co.uk/maps/tunnelmaplrgestrview.shtmlwhich loads
> from a MySQL database.
>
> The javascript generates an xml doc based on the 
> examplehttp://code.google.com/apis/maps/articles/phpsqlajax_v3.html
>
> Everything works fine in Safari, Firefox, Opera, Chrome and most Mozilla
> based browsers, however IE and Maxthon don't like it, the map loads but no
> tunnel icons show.
>
> The file that produces the xml data is 
> here:http://www.cycletourer.co.uk/maps/tunnels_genxmlstrview.php
>
> If you open it in Safari, Firefox etc it opens OK, but in IE I get this
> error:
>
> The XML page cannot be displayed
>
> Cannot view XML input using XSL style sheet. Please correct the error and
> then click the Refresh button, or try again later.
>
> *An invalid character was found in text content. Error processing resource
> 'http://www.cycletourer.co.uk/maps/tunnels_genxml...*
>
> <markers><marker district="Rogaland" name="38 tunnels" road="13"
> lat="59.277393" lng="6.227274" length="Route 191km...
>
> I realise that the icons are not generated because IE hasn't parsed the data
> because it doesn't like the encoding even though the header charset is set
> to ISO-8859-1 and I have played around with setting it to different
> encodings and have tried adding various suggestions to the php code from
> here <http://us2.php.net/manual/en/function.utf8-encode.php> but to no
> avail.
>
> Has anyone any ideas as to how I can solve it,

Have you tried using an xml header?
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>

Is your xml actually being encoded using ISO-8859-1?

Is your page encoded the same?

I know you can make it work, it will just take some investigation.

  -- Larry

> or do I just suggest to my
> website readers to install a better browser than IE ;-)
>
> Happy Christmas.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to