International characters in a swing component

If I have a UTF-8 encoded string that contains international characters, Japanese for example, the characters are not displayed correctly in, for example, a JLabel. I can change the Locale of a component, but is there a way to detect which Locale to use based on the contents of the String?

Thanks

[310 byte] By [sasdava] at [2007-11-26 16:21:33]
# 1
Setting the Locale wouldn't help - you need to set the font that has glyphs for the relevant characters. To your question - you can get the glyph ranges for languages at the http://unicode.org
kirillga at 2007-7-8 22:45:13 > top of Java-index,Desktop,Core GUI APIs...
# 2
While I dig through the link you provided do you have any suggestion on how I would pick a font to use based on the contents of the String?
sasdava at 2007-7-8 22:45:13 > top of Java-index,Desktop,Core GUI APIs...
# 3
You can use the Font.canDisplay(int) and Font.canDisplayUpTo(0 methods to check if a specific Font has glyphs for specific characters.
kirillga at 2007-7-8 22:45:13 > top of Java-index,Desktop,Core GUI APIs...