I find it....it is solve it with utf8_encode
You have to put
$newnode->setAttribute("description", utf8_encode($row['description']));
On Fri, Dec 3, 2010 at 9:15 AM, Blanaru Irina <[email protected]> wrote:
> this is the begining of doc
>
>
> // Start XML file, create parent node
>
> $dom = new DOMDocument("1.0");
> $node = $dom->createElement("markers");
> $parnode = $dom->appendChild($node);
>
> // Opens a connection to a MySQL server
>
>
> I think utf8......I think I have to swich it in ... ISO-8859-1, but I
> don't know from where.
>
> Thanks!
>
> On Fri, Dec 3, 2010 at 9:11 AM, [email protected] <[email protected]
> > wrote:
>
>> On Dec 2, 11:02 pm, Blanaru Irina <[email protected]> wrote:
>> > Hy everyoane,
>> >
>> > I have to use portuguesse charactere in my database. The problem is when
>> I
>> > transfore into an xml and read it to put it in an InfoBox for instance,
>> it
>> > gives error! I have in 'description' and 'link'. Any idea?
>> >
>> > Thank you very much!
>> >
>> > while ($row = @mysql_fetch_assoc($result)){
>> > // ADD TO XML DOCUMENT NODE
>> > $node = $dom->createElement("marker");
>> > $newnode = $parnode->appendChild($node);
>> > $newnode->setAttribute("name",$row['name']);
>> > $newnode->setAttribute("lat", $row['lat']);
>> > $newnode->setAttribute("lng", $row['lng']);
>> > $newnode->setAttribute("type", $row['type']);
>> > $newnode->setAttribute("description", $row['description']);
>> > $newnode->setAttribute("picture", $row['picture']);
>> > $newnode->setAttribute("address", $row['address']);
>> > $newnode->setAttribute("link", $row['link']);
>> >
>> > }
>> >
>> > echo $dom->saveXML();
>>
>>
>> What character encoding are you using?
>>
>> -- Larry
>>
>> --
>> 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.