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 - Wrong encodig is used for utf-16 encoded .jsp located outside project
Summary: Wrong encodig is used for utf-16 encoded .jsp located outside project
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-06 18:00 UTC by Martin Schovanek
Modified: 2009-11-02 11:17 UTC (History)
0 users

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 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