Application getParameters() not returning Umlaute properly

Daniel Peintner daniel.peintner at gmail.com
Mon Apr 11 06:15:39 UTC 2022


All,

I run into a *strange* behaviour.

In my application I associate a file extension which works fine. Clicking
on the desktop opens the app and loads the file I clicked on.

This works fine for Windows and Mac on its own.

Assume a file named "Kostenschätzung.avax" is stored on MacOS and gets
opened afterwards on Windows it fails. The filename on Windows is shown
correctly but after clicking on it on Windows the following call

[javafx.application.Application].getParameters().getRaw()

--> reports ->

[C:\...\Kostenscha¨tzung.avax]

As you can see the character "ä" becomes "a¨".

Note: loading of the file fails because this file does not exist.

Choosing the file via FileChooser and storing it again on Windows solves
the problem.

Have any of you ever encountered such an issue?

Thanks for any insight,

-- Daniel


More information about the openjfx-dev mailing list