[英]Always compile with utf8 encoding
I search a solution to always compile a java source file with utf8 encoding option. 我搜索解决方案总是使用utf8编码选项编译java源文件。 I'ts boring to type
javac -encoding utf8 Source.java
Is there a solution to compile in utf8 by default? 我很无聊输入
javac -encoding utf8 Source.java
默认情况下有没有在utf8中编译的解决方案?
Thanks. 谢谢。
尝试将JAVA_TOOL_OPTIONS
环境变量设置为-Dfile.encoding=UTF8
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.