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 133694 - I18N - DTD file doesn't use project encoding value
Summary: I18N - DTD file doesn't use project encoding value
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Tools (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2008-04-22 17:09 UTC by kaa
Modified: 2008-04-25 13:14 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 kaa 2008-04-22 17:09:16 UTC
Product Version: NetBeans IDE Dev (Build 200804210001)
Java: 1.6.0_05; Java HotSpot(TM) Client VM 10.0-b19
System: Windows XP version 5.1 running on x86; MS932; ja_JP (nb)

Steps:
1. Create XML doc (project encoding windows-31j)
2. Invoke Generate DTD from the pop-up

Dtd doc will be generated with UTF-8 value of encoding tag. It differs from the project one.
DTD entity template doesn't have any encoding parameters or hardcoded values in it. 
With UTF-8 project encoding file looks ok.

If this is expected behavior please state this in the issue and close.
Comment 1 Samaresh Panda 2008-04-23 18:59:52 UTC
I think it is hard-coded to utf-8. Should use project encoding instead.
Comment 2 Samaresh Panda 2008-04-23 20:32:24 UTC
Fix integrated: http://hg.netbeans.org/main/rev/f45ff3cf7878.
Comment 3 kaa 2008-04-24 17:54:21 UTC
Product Version: NetBeans IDE Dev (Build 20080424124045)
Java: 1.6.0_05; Java HotSpot(TM) Client VM 10.0-b19
System: Windows XP version 5.1 running on x86; MS932; ja_JP (nb)