How do I set the encoding for Javadoc in the gradient?
•
Java
I've written Java classes with the Javadoc command, which contains special characters like ä ö ü I use gradle build file to generate Javadoc:
apply plugin: 'java'
And on the command line: gradle Javadoc
The encoding of the original document is UTF-8 The encoding of Javadoc file is also UTF-8 But there is no prompt in the HTML source code. The file is UTF-8 That's why my browser always thinks it's ISO-8859
How to tell Javadoc (through gradle) to add < meta charset = "UTF-8" / > to the source code when generating Javadoc?
Solution
You will need to set Javadoc charset option
javadoc { options.charSet = 'UTF-8' }
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码