File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes JSF chart and Chinese font Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF chart and Chinese font" Watch "JSF chart and Chinese font" New topic
Author

JSF chart and Chinese font

jeff rusty
Ranch Hand

Joined: Nov 07, 2006
Posts: 109
Hi All,


I am gettking junk charachter in my JSF chart when viewing chinese text. I am not configuring any font at the runtime. Can some one help me to reolve this

thanks in advance
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Set the correct character encoding.

For more details, check the 'I love unicode' link at end of my signature.
jeff rusty
Ranch Hand

Joined: Nov 07, 2006
Posts: 109
Hi Bauke Scholtz,


thanks for your reply

<jsp:directive.page contentType="text/html;charset=utf-8" />

I already have this in my JSF page so do you think is this different issue?


thanks
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
The character encoding has to be the same thoroughout the application, in every layer.
jeff rusty
Ranch Hand

Joined: Nov 07, 2006
Posts: 109
Yes it is same across the layers.. i could see the Chinese on my JSF page but not on the chart. Is it because of the SVG ?

thanks
jeff rusty
Ranch Hand

Joined: Nov 07, 2006
Posts: 109
anyone?

I am using Trinidad's Chart component . which internally uses the SVG viewer to embbed the report in a PDF and makes it available for viewing.

thanks
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Maybe. I don't know SVG further.

Point is, the character encoding has to be correct and the same thoroughout the complete process. Connecting, reading, writing, displaying, storing, etcetera.
jeff rusty
Ranch Hand

Joined: Nov 07, 2006
Posts: 109
i have done everything correctly.. i also found that the chart doesnt work only in IE but works on firefox :s
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
I don't know SVG so I can't be of any means for you here.
(Re)read a basic SVG book/tutorial or try a forum/mailinglist devoted to SVG.
jeff rusty
Ranch Hand

Joined: Nov 07, 2006
Posts: 109
Hi ,

Can some one help me with the trinidad chart. It couldnt display chinese charachter despite of setting the charset as UTF-8. does trinidad chart support chinese? where can i find this information. I have east inidan languages and relevant fonts installed in my system..

please help me.

thanks
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Try a forum/mailinglist devoted to Trinidad.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF chart and Chinese font