linux下javadoc生成文件出现中文乱码
javadoc命令的正确使用姿势
javadoc -d apidoc -windowtitle Testing -doctitle 'The API of javadoc' -header 'My class' -charset UTF-8 -author -version *.java
注意
- 使用-author和-version是由于javadoc默认不提取这两个信息
- 添加-endoing UTF-8选项可使代码文件编码也更改为UTF-8
javadoc -d apidoc -windowtitle Testing -doctitle 'The API of javadoc' -header 'My class' -charset UTF-8 -author -version *.java