Michael Blum�hr wrote:
Hello,
my application transforms text generated by a host application in pdf.
The text file contains special characters for the euro sign and german
umlauts for the printer. After reading a line I convert the special
characters, this works well in Windows.
But my application should run under Linux and there all this special
characters are shown as '-' in the pdf-file.
String str2 = str.replace('\u00bf', '�'); didn't work
String str2 = str.replace('\u00bf', '\u00e4'); // ae didn't work also
Has anybody experience with umlauts?
What font are you using? What about the encoding?
This is an example with the euro sign and some characters with umlauts:
http://itextdocs.lowagie.com/examples/com/lowagie/examples/fonts/FontEncoding.java
http://itextdocs.lowagie.com/tutorial/fonts/fontencoding.pdf
See also: http://itextdocs.lowagie.com/tutorial/fonts/
br,
Bruno
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions