Re: Fwd: Help with Incorrect Identity-H Mapping

2024-01-31 Thread Gino G
Thank you so much! I'm using Gradle, so simply adding this passage was enough to fix this issue. compileJava.options.encoding = 'UTF-8' tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' } Am Mi., 31. Jan. 2024 um 04:41 Uhr schrieb Tilman Hausherr < thaush...@t-online.d

Re: Fwd: Help with Incorrect Identity-H Mapping

2024-01-30 Thread Tilman Hausherr
I'm using netbeans, so I can't help there much. Here's IntelliJ's help page which you may already have seen: https://www.jetbrains.com/help/idea/encoding.html To be 100% sure of what's in your file, open it with NOTEPAD++ and use the hex plugin, or a hex editor. NOTEPAD++ also offers the featur

RE: Re: Fwd: Help with Incorrect Identity-H Mapping

2024-01-30 Thread Gino G
Thanks for the reply Tilman. Yes, you are right, I am indeed getting 8, and not 4. However, I've been trying to change the encoding for almost two hours now, with no effect. Would you happen to know any resources that can help me get this to work? For more reference, I'm using IntelliJ and all f

Re: Fwd: Help with Incorrect Identity-H Mapping

2024-01-30 Thread Tilman Hausherr
Also try changing the line cs.showText("äöüß"); to String s = "äöüß"; System.out.println(s.length()); cs.showText(s); the output on the console should be 4. If suspect your output will be 8 if my theory is correct. Tilman

Re: Fwd: Help with Incorrect Identity-H Mapping

2024-01-30 Thread Tilman Hausherr
Hello Gino, Please tell whether it happens with every font or only with that one. And check whether the encoding in the source code is the same passed to the javac compiler. I suspect your file is UTF8 but the java compiler expects a single byte font. It works for me, I just tested it:    

Fwd: Help with Incorrect Identity-H Mapping

2024-01-30 Thread Gino G
Hello there, I'm encountering an error in how certain characters are encoded using PDFBox. The issue exists in all versions of PDFBox, but I'm currently using 3.0.1. contentStream.showText("äöüß"); The string "äöüß" is used as a test for Unicode characters that PDFBox needs to render. var reso