Hum.. It's very strange, because I set the BaseFont:
BaseFont bfVerdana = BaseFont.createFont(fontsPath+"verdana.TTF", BaseFont.CP1252, BaseFont.EMBEDDED);

But yes, I compile the classes in Solaris.

But I use the same class compiled, and if xpto (content of database) have accented characters, it will appear in the right way, and the rest will be wrong :|

p.add(new Chunk("É apenas um exemplo - à í ", fontVerdana9));
p.add(new Chunk(xpto, fontVerdana9));
p.add(new Chunk("á º ç ", fontVerdana9));

HUmmm..

Paulo Soares wrote:

If the classes are already compiled they should work in windowsand solaris.
If you are compiling the classes in solaris maybe the default charset is
ASCII instead of Cp1252.

----- Original Message -----
From: "Bruno Gonçalves" <[EMAIL PROTECTED] >
To: <[email protected]>
Sent: Wednesday, September 07, 2005 6:38 PM
Subject: Re: [iText-questions] accented characters on Solaris


humm.. strange!
I realize that the content wich comes from database is alright, and the
problem is in the text that is explicit on the file java =| Can this be
possible? Or I must put some codes to make the character 'ç', for example?
Hum..

Thanks..

Bruno Gonçalves wrote:

Some text comes from a database, but there are text directly in the
declaration of the Pdf.
It's very strange..
No sugestions?

Thanks..

Paulo Soares wrote:

Both encodings have accented characters. Are you sure that your program is
really receiving the accented characters?


-----Original Message-----
From: [EMAIL PROTECTED] [
mailto:[EMAIL PROTECTED]< [EMAIL PROTECTED]>]
On Behalf Of Bruno Gonçalves
Sent: Wednesday, September 07, 2005 5:42 PM
To: [email protected]
Subject: [iText-questions] accented characters on Solaris

Hi there,

I made the development of a automatic pdf using iText on a windows machine,
and everything works fine.

Now I must run my project on a Solaris machine, and I can't get accented
characters :(
I'm using TTF fonts, and I'm using a BaseFont.CP1252. If I use
BaseFont.MACROMAN, I get the character '?' instead of the
accented character.

What can I do?

Thanks =)




Reply via email to