Unicode in KML

414 views
Skip to first unread message

azzer

unread,
Aug 19, 2005, 2:34:27 PM8/19/05
to KML Discussions
Hi. I've been writing a Firefox extension which integrates with Google Earth; with a view to internationalization, I'm trying to get unicode e.g. Kanji/Kana placenames in the <name> tag, and cannot do it, no matter in what encoding I try..

I've looked at the code.google.com docs, and they suggest this should work, but I've tried creating a placemark directly in the Google Earth client itself (&#12473;&#12479;&#12540;&#12488;, if you can read that...): the katakana is rendered correctly in the 'Places' list, but is rendered as a series of boxes on the Earth. So I'm guessing that either this is a bug, or the Google Earth Client is missing the (Japanese) font. Or - more likely - I'm just not doing it right!

Any help (and an example!) would be really appreciated. Thanks.

(My extension's here: http://www.stemhaus.com/firefox/foxclocks/ )

PenguinOpus

unread,
Aug 19, 2005, 7:47:37 PM8/19/05
to KML Discussions

Be sure to choose a Primary font in the Options panel that supports Kanji characters. It sounds like you're inputting correctly, but don't have the client set up correctly to display.

azzer

unread,
Aug 20, 2005, 1:03:49 PM8/20/05
to KML Discussions
Hmm. I didn't think it would display correctly... I'm not too worried about that; I'm concerned about Google Earth display. Unfortunately I don' t have Japanese IME on my laptop, or I'd have put a kml example on my website.

Essentially, what I'm seeing (and you need Japanese IME to enter Kanji/Kana), I can rename a placemark in Japanese, and that displays correctly in the 'Places' list, but does not display correctly in main Google Earth window. I'm guessing this is a Google Earth issue - either a geniune bug, or missing fonts.

Also, when I generate a kml file with eg. Kanji in it, I see the above symptoms.

Am I making some stupid mistake (in which case I'd love to find a kml file that does what I want), or is this really a Google Earth issue?

Thanks!

PenguinOpus

unread,
Aug 20, 2005, 1:30:57 PM8/20/05
to KML Discussions

See my comment above. The Primary font in the Tools->Options->View menu needs to have Kanji characters in it. The default one does not (this is a different font than the one used in the list view).

azzer

unread,
Aug 21, 2005, 11:16:03 PM8/21/05
to KML Discussions
Sorry. I was suffering from severe options-blindness. Works fine. Thanks.

PriceCollins

unread,
Nov 19, 2005, 2:49:08 PM11/19/05
to KML Discussions
Can I put in an HTML <font face="Arial"> to get around the options problem for users who won;t bther setting the font?

Could this be used in both the place name and the description?
Reply all
Reply to author
Forward
0 new messages