如何解决mac下javac显示出乱码的问题。
进入终端
1.输入cd ~
2.输入 touch .bash_profile
3.open -e .bash_profile
然后在bash_profile下输入export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8并保存。
返回终端
输入source .bash_profile
即可解决
进入终端
1.输入cd ~
2.输入 touch .bash_profile
3.open -e .bash_profile
然后在bash_profile下输入export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8并保存。
返回终端
输入source .bash_profile
即可解决