Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Displaying Japanese characters

807588Jan 14 2009 — edited Feb 4 2009
Hi

I have the problem in displaying the Japanese characters in pdf.

This is my code

BaseFont bf = BaseFont.createFont("HeiseiKakuGo-W5", "UniJIS-UCS2-H",BaseFont.EMBEDDED);
Font font1 = new Font(bf, 9);

Phrase colm_2 = new Phrase(strCatgdes,font1);

I tried with different japanese fonts like HeiseiMin-W3, HeiseiKakuGo-W5 and KozMinPro-Regular with the encodings UniJIS-UCS2-H, UniJIS-UCS2-HW-H

Actual "strCatgdes" value is 日本語. But its displaying like this "æ��¥æ��¬èª��" in pdf.

Can anyone help me to solve this?

Thanks in Advance

Dhilip
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 4 2009
Added on Jan 14 2009
4 comments
661 views