• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

JSF chart and Chinese font

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Set the correct character encoding.

For more details, check the 'I love unicode' link at end of my signature.
 
jeff rusty
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The character encoding has to be the same thoroughout the application, in every layer.
 
jeff rusty
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try a forum/mailinglist devoted to Trinidad.
 
This is my favorite tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic