localization

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
bmoody
Posts: 9
Joined: Tue Nov 25, 2003 7:02 pm

localization

Post by bmoody » Fri Mar 19, 2004 9:59 pm

I have a resource bundle that contains Japanese text that I would like to use in the JFreeChart graphs that I include in my application. When I display the Japanese characters in my html page, they display fine. However, if I pass them to the JFreeChart methods to set titles, etc..., garbage (empty boxes) is displayed. :cry: Does JFreechart support localization?

zany
Posts: 20
Joined: Mon Mar 15, 2004 2:36 pm
Location: Germany

UTF-8?

Post by zany » Mon Mar 22, 2004 2:55 pm

Hi,

what charset and encoding do you use? Is it Unicode with UTF-8?
Can you give some example text?

cu,
Christian

bmoody
Posts: 9
Joined: Tue Nov 25, 2003 7:02 pm

localization

Post by bmoody » Tue Mar 23, 2004 1:15 am

I using the following encoding in my html page. Note, when I pass the following Japanese text directly into my html page, it displays fine. However, when I pass the same text to the JFreeChart methods to set the title & labels, the text does not display.


<meta http-equiv="charset" content="UTF-8">
<meta charset="UTF-8">


Japanese text
\u5e73\u5747\u30ad\u30e5\u30fc\u5b9f\u884c\u6642\u9593

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Tue Mar 23, 2004 10:36 am

You need to ensure that the font you are using to display the text in JFreeChart actually supports the Japanese characters you are trying to display.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked