When issue the command “javac” on the terminal of mac,the java help document is garbled.
zhang-zhongdemacbook:~ zhangzhong$ javac
?÷???javac <ѡ??> <Դ?ļ?>
???У????ܵ?ѡ???????
-g ???????е?????Ϣ
-g:none ???????κε?????Ϣ
zhang-zhongdemacbook:~ zhangzhong$ javac -version
javac 1.6.0_13
zhang-zhongdemacbook:~ zhangzhong$ java -version
Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-83, mixed mode)
zhang-zhongdemacbook:~ zhangzhong$ set
LANG=zh_CN.UTF-8
Could you help me on the issue?
Your terminal does not correctly interpret the output from javac, which is most likely an encoding issue.
Be sure that any locale variable (“export” in Terminal.app) corresponds to the encoding expected by Terminal.app (check Settings, I’m not at a Mac right now). If all else fails, try “export LANG=” so plain English should be output.