How to generate javadoc documentation with umlauts?

Kim Stebel picture Kim Stebel · Aug 23, 2009 · Viewed 24.8k times · Source

I am trying to generate Java documentation in Eclipse. The source files are UTF-8 encoded and contain some umlauts. The resulting HTML files do not specify an encoding and do not use HTML entities, so the umlauts aren't displayed correctly in any browser.

What can I do to change this?

Answer

FeelGood picture FeelGood · Jul 5, 2011

Modified from Eclipse javadoc in utf-8:

Project -> Generate Javadoc -> Next -> on the last page, in Extra Javadoc options write:

-encoding UTF-8 -charset UTF-8 -docencoding UTF-8