Hi,All
(B
(B I have been trying to use i-Text to display Japanese, but
(BI still couldn't. I get bytes from String and then I
(Bconverted it using following code, but all characters
(Bdisplayed as "????". Altough I refer to archive
(BNo:msg03203.html, I cannot understand this problem.
(B If somebody knows where I made mistake and right way to
(Bdisplay Japanese, I really want to your help..
(B
(BString jp = "--Japanese character--";
(Bbyte[] b = jp.getBytes();
(BString cemo = new String(b, "EUC_JP");
(B
(BDocument document = new Document(PageSize.A4.rotate(), 10,
(B10, 10, 10);
(Btry{
(B PdfWriter.getInstance(document, new
(BFileOutputStream("Test.pdf"));
(B document.open();
(B BaseFont bf = BaseFont.createFont("HeiseiKakuGo-W5",
(B"UniJIS-UCS2-H",false);
(B Font small_font = new Font(bf, 12);
(B document.add(new Paragraph((String)cemo, small_font));
(B }catch(DocumentException de) {
(B System.err.println(de.getMessage());
(B }catch(IOException ioe) {
(B System.err.println(ioe.getMessage());
(B }catch(Exception e){
(B System.err.println(e.getMessage());
(B document.close();
(B }
(B
(BEnviroment:Linux8.0, Struts1.0, Tomcat4.1
(B
(BThanks,
(BYUMIKO.
(B
(B
(B*************************************************
(BHIYAMA Yumiko (MIKO)
(B [EMAIL PROTECTED]/// [EMAIL PROTECTED]
(B-------------------------------------------------
(B HIROSHIMA PEACE MEMORIAL MUSEUM
(B http://www.pcf.city.hiroshima.jp/peacesite/
(B*************************************************
(B
(B__________________________________________________
(BDo You Yahoo!?
(BYahoo! BB is Broadband by Yahoo!
(Bhttp://bb.yahoo.co.jp/
(B
(B
(B
(B-------------------------------------------------------
(BThis sf.net email is sponsored by:ThinkGeek
(BWelcome to geek heaven.
(Bhttp://thinkgeek.com/sf
(B_______________________________________________
(BiText-questions mailing list
([EMAIL PROTECTED]
(Bhttps://lists.sourceforge.net/lists/listinfo/itext-questions