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 - EDITOR: UTF-16 encoded JSPs ere opened in ISO-8859-1
Summary: EDITOR: UTF-16 encoded JSPs ere opened in ISO-8859-1
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks: 44422
  Show dependency tree
 
Reported: 2004-06-07 13:00 UTC by Martin Schovanek
Modified: 2006-03-24 09:48 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 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