I am assumming that using the replace function in my php file which
connects to the markers table...and adding these two lines is correct,
correct?
$xmlStr=str_replace(" ' "," '\';',$xmlStr);
$xmlStr=str_replace(" ’ ",' &rsquo ;',$xmlStr);
***************************************************************
$xmlStr=str_replace('<','<',$htmlStr);
$xmlStr=str_replace('>','>',$xmlStr);
$xmlStr=str_replace('"','"',$xmlStr);
$xmlStr=str_replace("&",'&',$xmlStr);
> Ordinary straight apostophes should be escaped with \ (so an address
> might be 50 St Philip\'s Road). In many cases this may not be
> necessary, but it will always work so it's not a bad general rule.
>
> Curly apostrophes should be encoded as entities: ’ (including
> the & and the semicolon). BUT most xml encodings can't cope with these
> oddball entities, so you need to fool it by splitting that into
> ’
>
> The browser will see & and interpret that as & -- that's
> immediately followed by rsquo; and the browser knows that ’ is a
> right-single quote.
>
> [You're right: you found the answer to your second question]
--
You received this message because you are subscribed to the Google Groups
"Google Maps API V2" 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.