在shell脚本中将编码格式设置为java
发布时间:2020-12-16 01:09:40 所属栏目:安全 来源:网络整理
导读:我有一个 shell脚本运行我的 Java Application.Now我想指定编码格式“UTF8”到我的java应用程序使用shell脚本可以任何一个帮助.我正在使用mac os. 谢谢 Ganesh神 尝试 //invoking the compiler when your source code contains naked UTF-8 characters.javac
我有一个
shell脚本运行我的
Java Application.Now我想指定编码格式“UTF8”到我的java应用程序使用shell脚本可以任何一个帮助.我正在使用mac os.
谢谢
尝试
//invoking the compiler when your source code contains naked UTF-8 characters. javac.exe -encoding UTF-8 MyClass.java 和 //setting the default encoding on the command line java.exe "-Dfile.encoding=UTF-8" -jar myprog.jar 来源:http://mindprod.com/jgloss/encoding.html (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |