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 - The HTML editor gets charset value wrong
Summary: The HTML editor gets charset value wrong
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-25 23:17 UTC by brucekhaddon
Modified: 2014-10-06 13:25 UTC (History)
0 users

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 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)