While generating javadocs from within IntelliJ I am getting multiple errors for files:
unmappable character for encoding Cp1251
File encodings are UTF-8
. I found no any places for encoding control while javadoc generating.
By default, IntelliJ IDEA uses the system encoding to view console output. In the Settings/Preferences dialog ( Ctrl+Alt+S ), select Editor | General | Console. Select the default encoding from the Default Encoding list. Click OK to apply the changes.
In the Package Explorer view, select a Java project and click Project > Generate Javadoc with Diagrams > Automatically. In the Generate Javadoc wizard, under Javadoc command, select the Javadoc command (an executable file).
Create JSDoc commentsPosition the caret before the declaration of the method/function or field to document, type the opening block comment /** , and press Enter . IntelliJ IDEA generates a JSDoc comment with a list of parameters ( @param ) and return values ( @returns ), where applicable.
You can pass options to the Javadoc tool from IntelliJ IDEA. Adding -encoding utf8 -docencoding utf8 -charset utf8
to in the Other command line arguments text field should fix your problem. -encoding
specifies the encoding of the source files. -docencoding
the encoding of the output html files and -charset
the charset specified in the html head section of the output files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With