Jump to content
We've recently updated our Privacy Statement, available here ×

jasperNoob

Members
  • Posts

    10
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

jasperNoob's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. Now the chinese characters are showing up fine.... but only when I open the Report in HTML output .... If I try a PDF output, a blank page is thrown up. If someone cud help make it work in PDF too, it wud be totally awesome :laugh: thanks
  2. Loads of thanks.... It is working fine :laugh:
  3. lovetide wrote: If you use iReport to design your report, you can type/input or copy/paste Chinese characters directly. But if you use resource bundle to store Chinese characters, I have a experience like the following: 1. type/input or copy/paste Chinese characters directly in your .properties file #example: chinese_surname.king=金 chinese_surname.liu=刘 2. save .properties file in UTF-8 or GB18030/GBK/GB2312 or BIG5 encoding as you need 3. after you readed from .properties file, convert the encoding of result string from "ISO-8859-1" to the encoding you choosed at step 2, then, you'll get what you want I think... :laugh: Well I did steps 1 and 2 .... still doesnt work :( I put the translations directly in the properties file and saved the file with UTF-8 encoding . Also tried the "unicode" encoding that's available with notepad. Didnt work with that either. I cudnt implement the 3rd step you mentioned. Bcos I dont know what u mean by changing the encoding of the result string. how do you do that? I am attaching the jrxml here if you would like to take a look. And in the properties file I just wrote vars1=出货信æ¯å’Œå›½é™…出货 vars2=金 vars3=刘 [file name=chinese.jrxml size=8939]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/chinese.jrxml[/file]
  4. thanks jMurray for the detailed solution :) If only someone could give a similar detailed solution for translating my report labels into chinese :P at least take a look at my problem here : http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=215&func=view&id=22433&catid=9 Post edited by: jasperNoob, at: 2007/03/14 13:21
  5. found very well explained solution here. chk it out http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=&func=view&catid=9&id=19532#19532
  6. thanks a lot for the help ... I'll try these immediately ... hope it works out :)
  7. Hi , I dont have a solution to your problem but I think you have the solution to mine..... I have to print reports with alternate row colors in the detail section. Right now all my rows have the same color.... Can you please tell me how to implement alternate backgrnd color ??? Would greatly appreciate all help thanks
  8. you cant use static text ... you got to use a textfield and that too u have to transform into $R{text.date} . Only then will it look for the translation in the resource bundle.
  9. Plzzz...Someone plz give me a clue .... any clue....how to print chinese characters in jasper reports .... moderators pour some help .... i have looked through practically the whole forum now for help .... the documentation isnt much help either .... here's what I have done till now I managed to print chinese characters in my report by using unicode codes in the resource bundle. eg: if I want to translate "king" into chinese ill put king= u4E07u3E82uxxxxxxxx sth like this in my resource bundle. It works and prints the chinese characters for those codes. But I have to find out the unicode codes and put them in the resource bundle for this. I want to be able to directly copy paste the chinese characters for king into the resource bundle. Can this be done?? Also tell me if thr's any other way of going abt doing internationalization of double byte charaters thanks in advance Post edited by: jasperNoob, at: 2007/03/13 05:09
  10. Hi, I am trying to print chinese characters in my report. I use iReport to design my reports. I managed to print chinese characters in my report by using unicode codes in the resource bundle. eg: if I want to translate "king" into chinese ill put king= u4E07u3E82uxxxxxxxx sth like this in my resource bundle. It works and prints the chinese characters for those codes. But I have to find out the unicode codes and put them in the resource bundle for this. I want to be able to directly copy paste the chinese characters for king into the resource bundle. Can this be done?? Plz help ... very urgent Or else also tell me if you handle internationalization into chinese by some other way. Post edited by: jasperNoob, at: 2007/03/12 11:11 Post edited by: jasperNoob, at: 2007/03/12 11:12
×
×
  • Create New...