I have a JavaFX / Groovy application that I am trying to localize.
It turns out that when I use standard JavaFX execution with Java VM arg -dfile.encoding = UTF-8, all my international characters are displayed locally (e.g. ü).
However, if I call the application through a JNLP file using java-vm-args = "- Dfile.encoding = UTF-8", for example,
<resources>
<j2se version="1.6+" java-vm-args="-Dfile.encoding=UTF-8"/>
...other stuff...
</resources>
The application displays international characters as a pair of other random characters (for example, √¬).
Am I incorrectly specifying the file encoding in JNLP, or is there any difference between the standard execution and the web start that affects this?
Significant appreciation.
EDIT: I am using the Groovy API to access the Remember the Milk RESTful web service. All text that is problematic will be obtained from the received data (for example, task names) and will not actually be stored on disk in binary or text format. Curiously, "-Dfile.encoding = UTF-8" will actually fix it locally.
source
share