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.

Bug 60724 - I18N - JavaDoc generated without encoding name and in native encoding
Summary: I18N - JavaDoc generated without encoding name and in native encoding
Status: VERIFIED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: All Linux
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2005-07-04 06:19 UTC by agctools
Modified: 2006-08-22 09:26 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description agctools 2005-07-04 06:19:00 UTC
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.
Comment 1 Jan Pokorsky 2005-07-25 18:05:47 UTC
changing component to java/project that owns code handling javadoc generation.
Comment 2 Tomas Zezula 2005-09-12 15:32:18 UTC
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
Comment 3 Pavel Rehak 2006-08-22 09:26:45 UTC
Verified.