After changing the text editor, the default setting changed from S-JIS to UTF-8. I thought that UTF-8 was (probably) the standard in the world, so it is a memorandum that I took this opportunity to investigate Java to match UTF-8.
Set the character type you want to encode in the environment variable _JAVA_OPTIONS.
Example -Dfile.encoding=MS932 -Dfile.encoding=UTF-8
On Windows, this setting is possible with the set command.
Example set _JAVA_OPTIONS=-Dfile.encoding=MS932 set _JAVA_OPTIONS=-Dfile.encoding=UTF-8
However, this set command disappears when you restart, so if you want to set it semi-permanently, it seems better to set it manually in the environment variable.