Larry many thanks for that. I added your line of code to the php:
echo '<?xml version="1.0" encoding="ISO-8859-1" standalone="yes" ?>'; You were right it obviously needed this to parse it correctly. The map now works in IE8 however it does seem to load much slower than other browsers, there is also another problem. When you click on the icons the info window opens with scroll bars, this doesn't happen with other browsers. I will now have to workout how to get rid of them. Any ideas? Jon On Mon, Dec 27, 2010 at 3:23 PM, [email protected] <[email protected]>wrote: > 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]<google-maps-js-api-v3%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- 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.
