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.
[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.
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.
Fixed by a previous fix, when the xerces was added on the classpath for jsp parser
Verified