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 44416

Summary: EDITOR: UTF-16 encoded JSPs ere opened in ISO-8859-1
Product: javaee Reporter: Martin Schovanek <mschovanek>
Component: JSPAssignee: Petr Pisl <ppisl>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P2    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 44422    

Description Martin Schovanek 2004-06-07 13:00:19 UTC
[Nb Build 200406061800, jdk1.5.0]

Steps to reproduce:
-------------------
1) create a .jsp with following directive:
<%@page contentType="text/html;charset=UTF-16"%>
or
<%@page pageEncoding="UTF-16"%>
2) save and close the .jsp
3) open the .jsp again

ERROR: the .jsp is opened in ISO-8859-1 encoding

WORKAROUND: in web.xml set the <page-encoding
configuration element whose URL pattern matches
the .jsp to the UTF-16 value.
Comment 1 Martin Schovanek 2004-06-07 15:12:28 UTC
I tested tomcat 5.0.25 and a .jsp with some iso-8859-2 specific
characters and following directives:
<%@page contentType="text/html;charset=iso-8859-2"%>
<%@page pageEncoding="UTF-16"%>

Tomcat displayed the .jsp well.
Nb tried to open it in ISO-8859-1 and displaed it wrong.
Comment 2 Petr Pisl 2004-06-29 14:20:23 UTC
Fixed by a previous fix, when the xerces was added on the classpath
for jsp parser
Comment 3 Martin Schovanek 2004-07-15 16:32:02 UTC
Verified