Okay now it goes forward..
I have this :
$name=htmlentities($row['name']);
$name=utf8_encode($name);
$address=htmlentities($row['address']);
$address=utf8_encode($address);
$newnode->setAttribute("name", $name);
$newnode->setAttribute("address", $address);
But in my address fields i have a link like this :
<IMG class=IMG1 SRC=arrows_trans.gif> <a href="http://www.micmus.dk/
udvidsoeg.php?map=map&maal=Østrig&afr=1215813600&hjem=1226703600"
class=link15>Se Crab Pot ø æ å</a>
And after encoding, its not a link anymore, just text.. how can i
avoid that ???
You can see it here :
http://www.micmus.dk/phpsqlajax_map.htm
and my xml file here :
http://www.micmus.dk/new_phpsqlajax_genxml.php
On 26 Sep., 16:25, Rossko <[EMAIL PROTECTED]> wrote:
> > In my database i have :
>
> > name
> > Pan Africa Market æ
>
> Can you not see your own XML to see what is happening to your data?
> Just post> and in :http://www.micmus.dk/new_phpsqlajax_genxml.php
>
> in your browser.
>
> It now contains æ , so that hasn't been double-encoded and the &
> breaks the XML parser.
> In the same XML data is
> "Buddha Thai &amp; Bar"
> so we know some double encoding is happening.
>
> Earlier on in this thread, Martin pointed out that htmlspecialchars()
> does the conversion on SOME characters. And that htmlentities() does
> all the characters. Now off you go and work out what to try next.
>
> cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---