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.
[ BUILD # : 200510131922 ] [ JDK VERSION : 1.5.0_05 ] When I edit a CSS file, his encoding directive is ignored. The first line of a CSS file can contain the following directive: @charset "iso-8859-1"; But I see no difference when I am saving a CSS file that use iso-8859-1 or utf-8 encoding. I will also create another issue for DIFF module !!!
similarly as issue #67341 this is xml/css issue
I will try to implement an CSS encoding parser in the next release.
Making this issue as defect and closing issue #67341 which is in fact a duplicate.
*** Issue 67341 has been marked as a duplicate of this issue. ***
since we now have project encoding property and also some encoding handling for some file types, should this happen for css files ? If so I can file a separate issue. (since I think this one is about encoding directives not being used by ide when saving the file) For example, jsp and html files encoding directives will be seeded with that of the global project encoding when created or else that of the fallback locale (encoding of the locale user is in). (there is similar issue for xml files). for existing css files or if encoding of the file is changed by user, I need to get clear on what the new spec is related to feq on these as to assumption of encoding of such files and will add to the issue. --> let me know if separate issue should be created.
I consider this issue to be about the same problems which you reported to html and jsp, so we at least need: 1) take into account the @charset in the document when loading/saving the file in editor, if there isn't any use FEQ to get the encoding. 2) put proper @charset when creating from template
This never worked, marking as enhancement.