Fix garbled characters in SceneBuilder 11

SceneBuilder useful for creating JavaFX apps. However, if you install SceneBuilder 11.0.0 with Windows Installer from GLUON Site, there is a problem that Japanese menus etc. are garbled.

Tatsuno Otoshigo's blog is very helpful, but maybe because of the version difference, the path etc. are slightly different, so the book In the article, I would like to introduce the procedure for eliminating garbled characters in SceneBuilder 11.0.0 again.

Problem reproduction procedure

If you install SceneBuilder 11.0.0 by following the steps below, the Japanese menu will be garbled.

  1. Download the SceneBuilder 11.0.0 Windows Installer from the GLUON Site (https://gluonhq.com/products/scene-builder/) 図1.png
  2. Install according to the installer
  3. Execute the installed "C: \ Program Files \ SceneBuilder \ SceneBuilder.exe" 図2.png The menu etc. are garbled.

Cause

The file "\ com \ oracle \ javafx \ scenebuilder \ app \ i18n \ SceneBuilderApp_ja.properties" contained in the file "C: \ Program Files \ SceneBuilder \ app \ scenebuilder-11.0.0-all.jar" is corrupted. It seems that it has been done.

How to fix

1. Get the correct file

From the GLUON SceneBuilder GitHub repository (https://github.com/gluonhq/scenebuilder), download the following files:

Make sure the downloaded file is saved in UTF-8. If this is not the case, save it in UTF-8 using Notepad. 図3.png

※Caution: At the time of this writing, the SceneBuilder 11.0.0 source is maintained in the master branch. If the version on the repository is advanced, you may need to pay attention to the branch from which you are getting it.

2. Replace installed files

Overwrite the following file with the file obtained in 1. above.

For Windows 10, you can overwrite the files in the jar by following the steps below.

  1. Change the extension of the "scenebuilder-11.0.0-all.jar" file to ".zip"
  2. View the contents of the "scenebuilder-11.0.0-all.zip" file in Explorer
  3. Overwrite the "SceneBuilderApp_ja.properties" file by copying and pasting
  4. Change the extension of the "scenebuilder-11.0.0-all.zip" file back to ".jar"

3. Confirmation of garbled characters

If you execute "C: \ Program Files \ SceneBuilder \ SceneBuilder.exe", you can confirm that the garbled characters have been resolved. 図4.png

Congratulations, congratulations.

Recommended Posts

Fix garbled characters in SceneBuilder 11
Umlaut garbled characters
Japanese characters described in MessageResources.properties are garbled
Measures against garbled characters in Multipart Request with Quarkus
Zip compression with Java in Windows environment without garbled characters