-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong text encoding in cf-browser #47
Comments
I'm not too common to javafx, so I'm not sure, if I'm able to fix that at all ;-(. Which java version do you use? java 8? java 11? |
Thanks a lot for your comment and your effort in this library.
|
I tried to find some hints about that effect, but they are rare :-). |
Reading articles like that makes me feel, that it may be also related to your OS. |
The same issue is happening. And this is the first time I come across this issue on macOS, but I noticed something when running
This is also the full output of
|
Maybe you can check the example in that issue? |
Wow, you are awesome. I was planning to add that myself but in my project we decided to leave CoAP for now. Thank you a lot for this grate addition. CoAP don't have that much GUI tools that do work. |
I know its been quite a while, I'm a student and not very experienced with javaFX and maven, but I have exactly the same issue Tarekk describes above. Same style characters appearing when trying to run through the terminal. If I run through my IDE IntelliJ, it runs with the correct encoding. Was this a relatively simple fix? I have no idea whats wrong, but I get exactly the same error message mentioned in the "Font error on MACOS" article linked above. I can confirm, this issue is not specific to only this application that I'm currently working on. If I try and run another application coded by someone else using maven, I get a similar incorrect encoding. |
I'm also not too common with javaFX. The issue here was caused using java 11 and the openJFX version. Updating the used version to 14 or newer helped. That is configured in pom.xml in the dependency of "org.openjfx:javafx-fxml" <dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>14</version>
</dependency> With that, ensure you also use the "right java fx version" when run from the terminal According the README, it's started with java --module-path /usr/share/openjfx/lib --add-modules javafx.controls,javafx.fxml -jar cf-browser-2.5.0.jar I'm not sure, how you start it, but I would recommend to check the "--module-path". Hope that helps. |
As you know I had the same issue. After changing my dependencies related to javafx-graphics to 15 it solved the issue.
|
Thanks for reporting that. Did you also check with 14? Or did you just use the "newest / 15"? Uups, I saw it's javafx-graphics, not javafx-fxml |
When I run
mvn javafx:run
on a macos I get the cf-browser window but with wrong character encoding.The text was updated successfully, but these errors were encountered: