On 31 March 2011 12:32, MaxCaro <[email protected]> wrote:
>
> If you could explain me, where exactly i should place that function,
> it woulg really helping me a lot.
I would suggest that as your database currently does not contain
UTF-8, you leave everything as it is and only change what is
absolutely necessary.
Make sure you keep a copy of your current code, and make only the
minimum number of changes.
As a minimum, these lines
$newnode->setAttribute("name", $row['name']);
$newnode->setAttribute("address", $row['address']);
should be
$newnode->setAttribute("name", utf8_encode($row['name']));
$newnode->setAttribute("address", utf8_encode($row['address']));
so that those attributes get UTF8-encoded data to work with. You might
need to do that to other attributes, too.
What you will need to do is to include the right HTML headers to
indicate the page is UTF8-encoded, and you may need to include php
header()s for that too. However, if that's needed then it will be
obvious: the code won't fail (so the data is right) but it will look
wrong in the page (because the page thinks that ß are two separate
ISO-8859-1 characters and not a UTF-8 sequence which should be
displayed as ß).
--
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.