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 67341 - [50cat] I18N - encoding directives are ignored for CSS files
Summary: [50cat] I18N - encoding directives are ignored for CSS files
Status: VERIFIED DUPLICATE of bug 67340
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords: I18N
Depends on: 67340
Blocks:
  Show dependency tree
 
Reported: 2005-10-22 10:09 UTC by vbrabant
Modified: 2007-08-15 20:15 UTC (History)
2 users (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 vbrabant 2005-10-22 10:09:38 UTC
[ BUILD # : 200510131922 ]
[ JDK VERSION : 1.5.0_05 ]

When I do a diff of CSS files, their encoding directives are ignored.

The first line of a CSS file can contain the following directive:

@charset "iso-8859-1";

But it's ignored by the DIFF module.

Also don't use the NetBeans editor to do your test, because the NetBeans editor is also ignoring the encoding. See issue 67340.
Comment 1 _ pkuzel 2005-10-24 15:47:22 UTC
AFAIK diff uses editor's encoding detection logic. For XML/CSS not implemented.
Comment 2 _ pkuzel 2005-10-26 14:51:07 UTC
CSS module is reponsible for handling it.

BTW it can communicate found encoding to diff by setting "Content-Encoding"
fileobject attribute.
Comment 3 Petr Pisl 2005-11-10 14:29:06 UTC
I will try to fix it in nb 5.0 timeframe
Comment 4 Jaroslav Pospisil 2006-03-13 13:35:23 UTC
TM 5.0->TBD
Comment 5 Marek Fukala 2006-08-22 15:51:59 UTC
Once Issue 67340 is fixed this should work
Comment 6 Marek Fukala 2007-07-11 12:48:39 UTC

*** This issue has been marked as a duplicate of 67340 ***
Comment 7 _ hong_lin 2007-08-15 20:15:01 UTC
Close "DUPLICATE" issue