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.
Could "charset" be added as HTML file's property? The HTML files may be saved as different encoding from system default. If HTML files are saved with UTF-8 encoding, the multi-byte characters can not be displayed on Japanese default Solaris encoding (EUC-JP), and on Japanese Windows encoding (Shift_JIS). I would like to request to add encoding property for each HTML file (like JSP), and use that property value when opening HTML editor. We always use "charset" parameter for specifying HTML encoding, so I think it is the better to name "charset" instead of "encoding" as that property name. It is very useful for users that they can set encoding values for their HTML, because user sometimes need to create HTML files encoded no-system-default. And that property value can be used to convert the encoding. Could you investigate the possibility to add those kind of property as HTML file property?
marking as P2 since this would be very helpful to those using localized product or users of English product in other locales ken.frank@sun.com 03/12/2002
Set target milestone to TBDo
Changing to defect after consulation with nb QA and comments from nb strategy that some i18n rfes could actually be viewed as defects. And since this one and others about encoding in jsp/web apps come from those at localization center, it seems that this could be viewed as valid customer issues. Let me know if more details are needed. ken.frank@sun.com
I haven't heard about such discussion. Sorry but this really qualifies as a RFE.
Consistent use of the I18N keyword.
I believe encoding in HTML files is now handled in another way - by looking at the HTML header. Thus, no property is necessary. So this issue is essentially fixed. Petr P., can you comment?
Petr, you are right. There is code which looks for CONTENT-TYPE and CHARSET in the head of the html file. This charset is used for loading and saving. Unfortunately there is hard coded everything in uppercase so it will not work, when you write the html file in lower-case letters.
Changint to bug based on Petr's latest comment.
fixed + lexerized. Checking in ide/golden/deps.txt; /cvs/ide/golden/deps.txt,v <-- deps.txt new revision: 1.458; previous revision: 1.457 done Checking in html/nbproject/project.xml; /cvs/html/nbproject/project.xml,v <-- project.xml new revision: 1.13; previous revision: 1.12 done Checking in html/src/org/netbeans/modules/html/HtmlEditorSupport.java; /cvs/html/src/org/netbeans/modules/html/HtmlEditorSupport.java,v <-- HtmlEditorSupport.java new revision: 1.16; previous revision: 1.15 done
I verified in 6.0. I confirmed HTML file encoding is set by value of "Content-Type" attribute. Thank you for your fixing!