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 240961

Summary: The HTML editor gets charset value wrong
Product: web Reporter: brucekhaddon <brucekhaddon>
Component: HTML EditorAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description brucekhaddon 2014-01-25 23:17:08 UTC
In the HTML editor, when using the <meta> elements as follows:

   <meta charset="iso-8859-1" />

the editor generates a warning:

 Bad value "iso-8859-1" for attribute "charset" on element "meta": it is not the preferred encoding name. The preferred label for this encoding is "windows-1252".

Of course, the preferred IANA name for the Latin-1 charset is "iso-8859-1" (See http://www.iana.org/assignments/character-sets/character-sets.xhtml), which is that described in the W3C documents.
Comment 1 Vladimir Riha 2014-01-27 08:07:54 UTC
Reproducible, the w3c validator gives me the same error (simple HTML5 file with this meta tag). If I understand [1] it is on purposed and  preferred value is "name" (windows-1252 in this case) and non-preferred is label (iso-8859-1) - based on table in [2]

[1] http://web.archiveorange.com/archive/v/n3B5e0evHa4ekABVsH0U#TJnyVFIvmTq4tez
[2] http://encoding.spec.whatwg.org/#encodings



Product Version: NetBeans IDE Dev (Build 201401240001)