views:

681

answers:

1

I am trying to generate javadocs 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?

+3  A: 

See the -charset, -encoding and -docencoding flags for the javadoc command.

-charset specifies the input encoding -docencoding specifies the output encoding -charset makes javadoc include a meta tag with encoding info

robinr
Thanks for your answer. I thought there must be some easy way to do this in eclipse, since eclipse already knows the encoding of the input files.
Kim