Created attachment 113778 [details]
file contained in zip file
Product Version: NetBeans IDE Dev (Build 201111120600)
Java: 1.6.0_25; Java HotSpot(TM) Client VM 20.0-b11
System: Windows XP version 5.1 running on x86; Cp1252; en_NZ (nb)
The file is the Windows XP boot log file ntbtlog.txt in the attachment.
When opening the file, the editor complains with "This file appears to contain binary data. Are you sure you want to open it in the text editor?"
When pressing OK, then the editor displays only garbage.
I can open this without warnings in any number of test editors including IDE editors.
Created attachment 113779 [details]
it is probably caused by start character of unicode file (Byte-Order Mark)
Since the http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058 was closed as wontfix the BOM recognition will hardly ever get implemented in jdk so we should workaround it ideally in FileEncodingQuery impl. Reassigning to Tomas Z. Thanks.
The file opens for me after accepting the warning about binary content. Editor shows the text but because of the special characters at the beginning, there are extra spaces (UTF-16 vs. UTF-8?).
Created attachment 121060 [details]
Screen shot of garbage in editor
When I open the file then I get a full screen of garbage
This is the stopper for NB 7.2, please evaluate and resolve ASAP.
with regard to FileEncodingQuery: for txt file most likely the Project based implementation of FEQ will be selected based on FileOwnerQuery's file ownership. If not in project default encoding Charset will be used.
Definitely not a P1 based on bug criteria guidelines. Also not a regression, UTF-16 in TXT file's BOM has never been recognized.
There is a workaround for UTF-16 (and other) encoded TXT files. Install Encoding Support plugin from this URL:
Then open a file in a variety of encodings via File / Open In Encoding action.
At least UTF-16 could be recognized by the default Text File dataloader based on its BOM (Byte-Order Mark). Reassigning to datasystems.
which is part of queries module and queries belong to --other--
$ grep queries .nbbugzilla-components
queries = platform/-- other --