Maybe i didn't make myself clear. See the following java source file(written
in a chinese OS):
public class Test{
public static void main(String[] argc){
......
System.out.println("Japanese path separator: \\"));
document.add(new Paragraph("Japanese path separator: \\", japaneseFont));
......
}
}
when run this class in japanese OS, the glyph of '\u00a5', JPY symbol(not the
glyph for \u005c in chinese or english), was printed in console, this is
correct and expected. But the glyph shown in pdf is \ , this is not expected,
the pdf should show the same as that printed in console. Replace the char
\u005c with \u00a5 can solve this problem, but i think it is not a good idea,
becuase the program must search every String, and this may cause performance
problem.
I can't tell where this problem arises from, so ask for your help, thank you
very much.
> Date: Tue, 2 Jun 2009 08:18:25 +0200
> From: [email protected]
> To: [email protected]
> Subject: Re: [iText-questions] problem with the backslash('\') in japanese
>
> chuguanghua wrote:
> > hi,
> > i mean the unicode '\u005c' ('\' char ) in japanese should
> > be displayed as the glyph of unicode '\u00a5'.
>
> If you want a glyph X be displayed as a glyph Y,
> you need to replace all the char values for X
> with char values for Y.
>
> As you are talking about a path separator, there's
> probably a Java method to do this (using Locale);
> but that's not an iText question.
>
> Are you sure this is a question for us?
> This seems to be way off-topic.
> --
> This answer is provided by 1T3XT BVBA
> http://www.1t3xt.com/ - http://www.1t3xt.info
>
> ------------------------------------------------------------------------------
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
> looking to deploy the next generation of Solaris that includes the latest
> innovations from Sun and the OpenSource community. Download a copy and
> enjoy capabilities such as Networking, Storage and Virtualization.
> Go to: http://p.sf.net/sfu/opensolaris-get
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
_________________________________________________________________
Messenger安全保护中心,免费修复系统漏洞,保护Messenger安全!
http://im.live.cn/safe/------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/