The XML Structure is like this : <?xml version="1.0" encoding="UTF-8"?> <candidates> <candidate-data> <candidatename>Raja Raja</candidatename> <addressline1>Raja</addressline1> <addressline2>&#21271;&#26041;&#35805;/&#21271;&#26041;&#35441;</addressline2> <addressline3>&#21271;&#26041;&#35805;/&#21271;&#26041;&#35441;</addressline3> <addressline4>&#21271;&#26041;&#35805;/&#21271;&#26041;&#35441;</addressline4> <addressline5>&#21271;&#26041;&#35805;/&#21271;&#26041;&#35441;</addressline5> <addressline6>&#21271;&#26041;&#35805;/&#21271;&#26041;&#35441;</addressline6> </candidate-data> <candidate-data> <candidatename>Rakesh Rakesh</candidatename> <addressline1>Raja</addressline1> <addressline2>&#21271;&#26041;&#35805;/&#21271;&#26041;&#35441;</addressline2> <addressline3>&#21271;&#26041;&#35805;/&#21271;&#26041;&#35441;</addressline3> <addressline4>&#21271;&#26041;&#35805;/&#21271;&#26041;&#35441;</addressline4> <addressline5>&#21271;&#26041;&#35805;/&#21271;&#26041;&#35441;</addressline5> <addressline6>&#21271;&#26041;&#35805;/&#21271;&#26041;&#35441;</addressline6> </candidate-data> </candidates>
Where am i doing the Mistake !!!! ________________________________________ From: Rakesh Kumar S [EMAIL PROTECTED] Sent: Wednesday, July 09, 2008 4:34 PM To: [email protected] Subject: Problem with Asian Language fonts Hi Guys, I have a problem with displaying Asian Language fonts in PDF.Ours is a Java application using hibernate and we have a reporting module where we need to print reports as PDF's. We are using apache FOP for this purpose. Our application allows the users to enter in asian language fonts Japenese, Chinese, Korean languages. Now those languages get stored in the DB. When they are stored in the DB they get converted into encoded values and are saved. While converting into PDF we have two steps: 1. Convert the Object into XML using castor framework. 2. Convert the XML into a PDF using FOP. My problem is that the characters are appearing as encoded text in the PDF also. I am using UTF-8 encoding.I am using Arial Unicode MS Font that allows Asian language fonts. Please find the PDF attached. Could someone guide me how to overcome this problem. Tell me where this conversion should actually happen,should this happen in while i generate the XML or while i convert this into PDF. Please find the PDF and the XML Generated Attached. Please do guide me as i am totally stuck and unable to proceed as i am running out of options. Thanks, Rakesh Kumar S **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS*** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
