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 149275

Summary: Wrong encodig is used for utf-16 encoded .jsp located outside project
Product: javaee Reporter: Martin Schovanek <mschovanek>
Component: JSPAssignee: Marek Fukala <mfukala>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Martin Schovanek 2008-10-06 18:00:33 UTC
[#200810060201, jdk1.5.0]

to reproduce:
-------------
1) create a new .jsp
2) set the encoding to UTF-16
3) move the file outside the project structure (eg into /tmp folder)
4) open it

ERROR: the file is opened by default encoding so: no coloring, BOM is visible at the beginning, properties shows
ISO-8859-1 encoding.
Comment 1 Marek Fukala 2008-10-09 15:32:12 UTC
That is likely because of the jsp parser cannot operate whithout a web module so the default encoding is used. This is
hard to fix directly but I can improve the FastOpenInfoParser to recognized BOMs.
Comment 2 Marek Fukala 2008-11-19 11:41:24 UTC
future=>later
Comment 3 Quality Engineering 2009-11-02 11:17:47 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX