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.
Summary: | UTF-16 encoding detected by parser as UTF-16BE | ||
---|---|---|---|
Product: | javaee | Reporter: | Martin Schovanek <mschovanek> |
Component: | JSP | Assignee: | Marek Fukala <mfukala> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | CC: | phejl |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Martin Schovanek
2008-10-06 18:26:06 UTC
This is caused by jsp parser returning UTF-16BE encoding for a file with UTF-16 encoding. The UTF-16 encoding has mandatory BOM, for UTF-16BE it is arbitrary. In fact both encoding are the same. Since the UTF-16BE character decoder doesn't expect BOM the BOM is written into the document content. When saving the file the BOM is added so it is duplicating. Can be fixed by not loading the BOM chars in the BaseJspEditorSupport.loadFromStreamToKit() for UTF-16BE encoding if they are present. future=>later NetBeans.org Migration: changing resolution from LATER to WONTFIX |