Chart internationalization with PNG [message #246892] |
Mon, 09 July 2007 06:10  |
Eclipse User |
|
|
|
Originally posted by: MCIPRIA1.it.ibm.com
This is a multipart message in MIME format.
--=_related 0037E31DC1257313_=
Content-Type: multipart/alternative; boundary="=_alternative 0037E31DC1257313_="
--=_alternative 0037E31DC1257313_=
Content-Type: text/plain; charset="US-ASCII"
Hi,
I'm using Birt 2.1.2, and I'm havong same problme with
internationalization of charts. In chinese, I have a resource with value
"status=\u5341\u5341 Status" (unicode), but rendering it this is the
result
The label on the bottom in a dynamic text with value
reportContext.getMessage("status",reportContext.getLocale()). The locale
is zh, I set that on the windows preference, and as a consequence the
bottom text is correctly shown, but in the chart (png) the chars are
scrambled.
Any suggestion?
Thanks!
--=_alternative 0037E31DC1257313_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif">Hi,</font>
<br><font size=2 face="sans-serif">I'm using Birt 2.1.2, and I'm havong
same problme with internationalization of charts. In chinese, I have a
resource with value "status=</font><font size=2 face="Courier New">\u5341\u5341
Status" </font><font size=2>(unicode), but rendering it this is the
result</font>
<br><img src=cid:_1_05AE259C05AE22CC0037E31DC1257313>
<br>
<br><font size=2>The label on the bottom in a dynamic text with value </font><font size=1 face="Tahoma">reportContext.getMessage(</font><font size=1 color=#4200ff face="Tahoma">"status"</font><font size=1 face="Tahoma">,reportContext.getLocale())</font><font size=2>.
The locale is zh, I set that on the windows preference, and as a consequence
the bottom text is correctly shown, but in the chart (png) the chars are
scrambled.</font>
<br><font size=2>Any suggestion?</font>
<br><font size=2>Thanks!</font>
--=_alternative 0037E31DC1257313_=--
--=_related 0037E31DC1257313_=
Content-Type: image/gif
Content-ID: <_1_05AE259C05AE22CC0037E31DC1257313>
Content-Transfer-Encoding: base64
R0lGODlhugCzAOcAAP///0iIeODg4LBAOAAAAPDw8Ojo6Ojw8ND4+Pjw8PD4 +PDg4PjouPDo6ODo
6Pj40JgAmFCQgFiQgOj4+HBwuPD48BgYGMjY2Ojw6FiYiLjQyN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iHXhivI4OUoKwEjrtmCCwzDEru3 ivzl4orF91RyDrDG
YJyxelq4zIQor1VAbpXyekzkIhv5yEhOctqGmEYlN4TJTGaAxFzyIiAaxMpd pBKQtOwjEYGIIP+i
cphdsoIxc8CJTjyYwK4IZYdsSDOJQPyAj+D8ZTT38AhKzGKbE+KigTCRRADo c6DhDOgcDiyJCKAC
FanQISvu2cmQjnRfAgIAOw==
--=_related 0037E31DC1257313_=--
|
|
|
|
|
|
Re: Chart internationalization with PNG [message #246975 is a reply to message #246950] |
Mon, 09 July 2007 12:27  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0056_01C7C256.CF574ED0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
This is a java configuration problem. See this documentation from Sun:
http://java.sun.com/javase/technologies/core/basic/intl/faq. jsp#cjk-font-=
problem
If you use the IBM JDK, you will need to check their documentation, =
there should be some similar configuration settings.
Thanks,
David
<MCIPRIA1@it.ibm.com> wrote in message =
news:f6tgdo$91f$1@build.eclipse.org...
Thank for your help. I'm trying to apply your suggestion, but I cannot =
find a way to make chart engine to use the Verdana font. Where do I have =
to put the font library exactly? Are you referring to the .ttf font =
file? I'm working with WebSphere 6.1, and I tired to put it in the =
jre/lib/font dir but without success. I also tried to debug the chart =
engine source code (getCaption on the label Impl), but the String object =
is always correctly translated. Where exactly happens the swing =
transformation for png rendering (in order to debug it deeper)?=20
Thank you very much!
------=_NextPart_000_0056_01C7C256.CF574ED0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16481" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>This is a java configuration problem. =
See this=20
documentation from Sun:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D" http://java.sun.com/javase/technologies/core/basic/intl/faq. jsp#c=
jk-font-problem">http://java.sun.com/javase/technologies/core/basic/intl/=
faq.jsp#cjk-font-problem</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>If you use the IBM JDK, you will need =
to check=20
their documentation, there should be some similar configuration=20
settings.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>David</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV><<A =
href=3D"mailto:MCIPRIA1@it.ibm.com">MCIPRIA1@it.ibm.com</A>>=20
wrote in message <A=20
=
href=3D"news:f6tgdo$91f$1@build.eclipse.org">news:f6tgdo$91f$1@build.ecli=
pse.org</A>...</DIV><BR><FONT=20
face=3Dsans-serif size=3D2>Thank for your help. I'm trying to apply =
your=20
suggestion, but I cannot find a way to make chart engine to use the =
Verdana=20
font. Where do I have to put the font library exactly? Are you =
referring to=20
the .ttf font file? I'm working with WebSphere 6.1, and I tired to put =
it in=20
the jre/lib/font dir but without success. I also tried to debug the =
chart=20
engine source code (getCaption on the label Impl), but the String =
object is=20
always correctly translated. Where exactly happens the swing =
transformation=20
for png rendering (in order to debug it deeper)?</FONT> <BR><FONT=20
face=3Dsans-serif size=3D2>Thank you very =
much!</FONT></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0056_01C7C256.CF574ED0--
|
|
|
Powered by
FUDForum. Page generated in 0.04308 seconds