前端之家收集整理的这篇文章主要介绍了
在shell脚本中将编码格式设置为java,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个
shell脚本运行我的
Java Application.Now我想指定编码格式“UTF8”到我的java应用程序使用shell脚本可以任何一个帮助.我正在使用mac os.
谢谢
Ganesh神
尝试
//invoking the compiler when your source code contains naked UTF-8 characters.
javac.exe -encoding UTF-8 MyClass.java@H_502_9@
和
//setting the default encoding on the command line
java.exe "-Dfile.encoding=UTF-8" -jar myprog.jar@H_502_9@
来源:http://mindprod.com/jgloss/encoding.html