This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Create a Java Class in IDE, and select "Generate java doc" from "Build" menu to generate the java doc files. Open the browser to view the generated java doc index.html file, the multi-byte can't be displayed correct under mozilla's default encoding setting. Select mozilla menu "View->Charset" and select GB2312 in Simplified Chinese environement, the file display is correct. View the java doc html source, the charset is not specified. I'd like to suggest the following fix: . add the meta tag for all javadoc html file: <meta http-equiv="content-type" content="text/html; charset=utf-8"> . When to output java doc into .html files, set the outstream to utf-8 encoding, ie, write the javadoc in utf-8 encoding.
changing component to java/project that owns code handling javadoc generation.
The NetBeans uses ant's javadoc task to build the javadoc which calls the jdk's javadoc. Currently the project has no encoding option, see enhancement: http://www.netbeans.org/issues/show_bug.cgi?id=42638 The javadoc is using the default system encoding and does not generate the charset metainfo. If you want to generate the javadoc with correct charset you have to set the additional javadoc options (Project Properties/Documenting) to: -charset <your_encoding> -encoding <your_encoding> -docencoding <your_encoding> eg: -charset ISO8859-2 -encoding ISO8859-2 -docencoding ISO8859-2
Verified.