The title property of markers expects a string not html.
As far as I've seen Google generally and consistently uses utf-8
characters, so the easiest solution would be using the encoded utf-8
charset too.

But of course you can also use the characters that you commonly use -
as far as Javascript supports the charset. In this case you'd have to
tell Javascript which charset to use and use it accordingly, for
example

<script type="text/javascript" charset=iso-8859-1">




On Jul 24, 1:07 am, Team Fauna <[email protected]> wrote:
> Hi everyone, we're new to the group and would like to have a good
> start here.
>
> We've encountered a problem while creating a marker object.
>
> var marker = new google.maps.Marker({
>                                                 position: myLatLng,
>                                                 map: map,
>                                                 icon: image,
>                                                 title: ' Strángë Chärácters'
>                                                 });
>
> When writing the title like that, all of the foreign language
> characters will appear with a ? sign inside a small square. The normal
> thing to do would be something like Str&aacute;n&Euml;
>
> Then whenever we put the mouse over the marker it will just show up as
> "Str&aacute;n&Euml;" It looks like that line wont be interpreted.
>
> We would gladly appreciate any help on this matter. We couldn't find
> any documentation about it.
>
> Thanks!

-- 
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.

Reply via email to