Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set encoding in IntelliJ javadoc generating?

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.

like image 796
Suzan Cioc Avatar asked Jul 02 '15 06:07

Suzan Cioc


People also ask

How do I change character encoding in IntelliJ?

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.

How do I create an automatic Javadoc?

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).

How do I create a method level comment in IntelliJ?

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.


1 Answers

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.

like image 60
Bas Leijdekkers Avatar answered Oct 07 '22 08:10

Bas Leijdekkers