Get Rid of Un-mappable Character for Encoding Cp1252 when Compiling Java

Ignatius Bagussuputra
#tutorial#coding 2 ways to get rid of it
-
Add the encoding option on compile command
javac -Dfile.encoding=UTF-8 your_appname.java
-
Add the command to the System Variable
Variable name: JAVA_TOOL_OPTIONS
Variable value: -Dfile.encoding=UTF-8
Find an issue with this post? Have something to add, update, or clarify? All my posts here are editable.
Just create a new Issue or PR on GitHub, any fix or addition is much appreciated!