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 207898 - UTF-8 BOM is displayed in JS editor
Summary: UTF-8 BOM is displayed in JS editor
Status: RESOLVED DUPLICATE of bug 161015
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P3 normal with 2 votes (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-30 09:13 UTC by Dmitry.Sokolov
Modified: 2014-02-06 16:50 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot of opened UTF-8 with BOM file (5.18 KB, image/png)
2012-01-30 09:13 UTC, Dmitry.Sokolov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry.Sokolov 2012-01-30 09:13:47 UTC
Created attachment 115370 [details]
screenshot of opened UTF-8 with BOM file

When a UTF-8 with BOM javascript file is opened in the editor there is the first symbol looks like a dot. While there is no such symbol when a UTF-8 with BOM CSS- or HTML-file is opened.
Comment 1 c69 2012-12-01 20:31:38 UTC
Should this be considered a bug ?
I like NB behaviour the way it is now.
Comment 2 Petr Hejl 2012-12-04 13:32:06 UTC
This is valid though consistent with other editor types. I think in case we would intend to solve this it should be solved in editor infrastructure.
Comment 3 Milutin Kristofic 2012-12-04 16:12:20 UTC
I don't understand how this is editor related when reporter said the dot is only in javascript files and not html, or css.

I tested java file:
1, created java project
2, changed encoding of project to utf-8 
3, create class
4, there is not a dot in file.

Returning back.
Comment 4 Manu_L 2013-05-13 14:22:55 UTC
Milutin, your test didn't show any results since Netbeans creates UTF-8 files _without_ BOM but the problem is with files _with_ BOM.

This is not an issue when developing for webservers but it's a big deal if you develop for scripting interfaces. Such interfaces are e.g. offered by several ECM applications.
Comment 5 matafagafo 2013-06-05 00:22:27 UTC
This happens with me too, and it's a very annoying problem.
Comment 6 Petr Hejl 2013-07-19 08:04:12 UTC
Yep as stated in comment 4 the test in comment 3 just tests NB does not create file with BOM. Create the source file outside of NB with BOM and you'll the problem displayed at screenshot.
Comment 7 Jiri Prox 2014-02-06 16:50:06 UTC

*** This bug has been marked as a duplicate of bug 161015 ***