The question here is if the file encoding is the same as the compilation encoding. You may see the characters in the source file because your platform's encoding is Cp1251, for example. If that's the case you must also compile it with Cp1251.
Best Regards,
Paulo Soares
-----Original Message-----
From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of Algirdas M.
Sent: Sunday, February 22, 2004 13:01
To: [EMAIL PROTECTED]
Subject: [iText-questions] cyrillic characters + intellij idea
Hello,
I'm using IntelliJ IDEA and iText library and I'm having problems
with cyrillic characters.
What I'm trying to do, is to put some cyrillic text with an absolute
position on the pdf.
My source:
...
BaseFont bf = BaseFont.createFont("c:/winnt/fonts/times.ttf",
BaseFont.IDENTITY_H, true);
PdfContentByte cb = writer.getDirectContent();
cb.beginText();
cb.setFontAndSize(bf, 10);
cb.setTextMatrix(60, 650);
cb.showText("text in cyrillic");
cb.endText();
...
IDEA runs my program with -Dfile.encoding=UTF-8 and cyrillic
characters are showing in IDEA correctly, but not on the pdf form.
Does anyone use IntelliJ IDEA with cyrillic characters?
Or maybe to put cyrillic characters on the pdf I should write text
in "\u0418\u044f" format? In such format cyrrilic characters are
showing correctly on the pdf.. but it isn't so comfort.
--
Best regards,
Algirdas
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions
