I'm trying to set text to a JLabel. Suppose I have a string variable called "description". "description" contains japanese characters. when I use jLabel.setText(description), it works fine and shows the japanese fonts properly. Now if I try to wrap the description with html tags..e.g
then it just messes the japanse fonts. Why is that so? How can I wrap that in html? Thanks in advance. -Dan
Pat Hays
Ranch Hand
Joined: Aug 20, 2004
Posts: 138
posted
0
Hi S Dan
I am not sure whether this would help you, but u could try it.
(If u are using WindowsOS) Go to Control Panel => Date, Time, Language, and Regional Options => Regional and Language Options, then choose Japanese as Standards and formats Setting. Hope it works for u.
I would find out what font your JLabel uses to do it's display with. You are explicitly giving the HTML a list of fonts to choose from, but perhaps those fonts don't support Japanese characters.
I know that I have to use a special font in order to make chinese characters appear properly in my swing app, otherwise I get boxes where the characters should be.
Cheers, Jared.
SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.