Aha - that's helped me to address one of my longest standing bugs!!
Thanks!!  I have three jsapi numbers for my home pc, the beta site that i
show to my sister and one for the original site. I got fed up of commenting
out the relevant api number as the moved the content accross the sites and
wrote a script that that looked at $_SERVER[HTTP_REFERRER] which I now
realise could cause errors if you go straight to the map rather being
refered by a page from the site!!

But I'm no longer certain about anything to do with the special characters
anymore as http://af.awardspace.co.uk/map/#zus is now making a mess of the
euro € symbol again, which is evident from the output of
http://af.awardspace.co.uk/af/map/genxml.php? (seach for zus).  The comments
are saved in the mysql database in utf_bin but not making it nicely to the
xml file.  What could I do- they are currently being run through Google's
proposed script, namely:

function parseToXML($htmlStr)
{
$xmlStr=str_replace('<','&lt;',$htmlStr);
$xmlStr=str_replace('>','&gt;',$xmlStr);
$xmlStr=str_replace('"','&quot;',$xmlStr);
$xmlStr=str_replace("'",'&apos;',$xmlStr);
//$xmlStr=str_replace('€','&euro;',$xmlStr);
$xmlStr=str_replace('&','&amp;',$xmlStr); //goes last to translate all &
from above
return $xmlStr;
}

HB

2009/1/5 warden [Andrew Leach - Maps API Guru] <
[email protected]>

>
> On Jan 4, 8:10 pm, Hotbelgo <[email protected]> wrote:
> > I should have added that the rest of the restaurant data is used on
> > the website (I have a script that converts {shortname} into various
> > things and in the infowindows on the map.  For example, in IE6
> > http://www.amsterdamfoodie.nl/2008/balthazars-three-course-gifts/
> > leads to a restaurant called Balthazar's Keuken  but in the info
> > window it is Balthazar&apos;s Keuken.
>
> Not for me it doesn't. In IE6, the code is missing the jsapi script
> loader! I get a series of errors starting with "google is undefined".
> That script tag is there in Firefox and it works.
>
> Andrew
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to