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 36186 - jsp editor converts some iso-8859-2 chars to ? after saving
Summary: jsp editor converts some iso-8859-2 chars to ? after saving
Status: RESOLVED DUPLICATE of bug 34339
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: jdi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-18 14:51 UTC by demeterft
Modified: 2004-02-06 09:57 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
three examples screenshot after "Ctrl-s , Close , Open" (77.40 KB, image/jpeg)
2004-01-29 12:29 UTC, jdi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description demeterft 2003-09-18 14:51:26 UTC
When I type spec iso-8859-2 characters in the jsp
editor (and ONLY in the jsp editor) - such as
\u00d5 \u00f5 \u00db \u00db - they look right. If
I save & close the jsp page and open it again,
then the typed spec characters are converted to
'?' character. (If I edit this jsp file with an
external editor, then the spec characters appear
right in Netbeans.) 
This is strange for me, because when I edit a java
source or other file type this problem is not
appears, and it is annoying, because in my native
language - Hungarian - these letters are used
frequently.

I tried the Netbeans 3.5/3.5.1 and the Sun ONE
Studio 4.1 and the problem is there in all version.

My linux is GNU/debian testing/unstable installed
from the Knoppix 3.2 2003.07.26 distribution.
I use the j2sdk1.4.2 bundled with Netbeans 3.5, 
my locale preferences:
   LANG=hu_HU,
   LC_ALL=hu_HU
   CHARSET=iso8859-2,
output of the `locale charmap`: ISO-8859-2,
kernel: 2.4.22 with ac1 patch,
XFree86: 4.3

I hope my English is understandable and the
problem will resolved soon.

Sincerely,

    Tamás Demeter
Comment 1 Miloslav Metelka 2003-09-18 16:06:03 UTC
Not sure whether jsp evaluates the file's header for charset
information which could override your locale's charset. Reassigning to
web module.
Comment 2 Petr Pisl 2003-11-04 16:39:30 UTC
yes, this is a bug. I'm going to work on this soon. 
Comment 3 jdi 2004-01-29 11:49:20 UTC
Tamás Demeter,
are you sure that you selected a correct incoding?
I have not found the symbols "\u00d5 \u00f5 \u00db \u00fb " in the 
iso-8859-2, but i have found it in the iso-8859-1 ("Õ õ Û û ").
Here is three exsamples, with iso-8859-1 all works good.
-------------------------------------------------
<%@page contentType="text/html;charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<html>
<head><title>JSP Page</title></head>
<body>
&#213; &#245; &#219; &#251; 
---------------------------------------------
Ctrl-s,Close;
Open :
-------------------------------------------------
<%@page contentType="text/html;charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<html>
<head><title>JSP Page</title></head>
<body>
&#213; &#245; &#219; &#251; 
---------------------------------------------
Ok.

Next case:
------------------------------------------
<%@page contentType="text/html;charset=iso-8859-2"%>
<%@page pageEncoding="iso-8859-2"%>
<html>
<head><title>JSP Page</title></head>
<body>
&#213; &#245; &#219; &#251; 
----------------------------------------------
Ctrl-s,Close;
Open:
---------------------------------
<%@page contentType="text/html;charset=iso-8859-2"%>
<%@page pageEncoding="iso-8859-2"%>
<html>
<head><title>JSP Page</title></head>
<body>
? ? ? ? 
-------------------------------------
Bug?

Next:
------------------------------------
<%@page contentType="text/html;charset=iso-8859-1"%>
<%@page pageEncoding="iso-8859-1"%>
<html>
<head><title>JSP Page</title></head>
<body>
&#213; &#245; &#219; &#251; 
------------------------------------
Ctrl-s,Close;
Open:
------------------------------------
<%@page contentType="text/html;charset=iso-8859-1"%>
<%@page pageEncoding="iso-8859-1"%>
<html>
<head><title>JSP Page</title></head>
<body>
&#213; &#245; &#219; &#251; 
------------------------------------
Ok.
Comment 4 jdi 2004-01-29 12:29:25 UTC
Created attachment 13132 [details]
three examples screenshot after "Ctrl-s , Close , Open"
Comment 5 jdi 2004-02-06 08:53:57 UTC
not a bug
Comment 6 Petr Pisl 2004-02-06 09:57:00 UTC
Hi, this bug is reported against the 3.5, where the bug is still. In
the maintrunk this bug is almost fixed. It's the same issue as #34339,
which I solve now in the trunk. 
Comment 7 Petr Pisl 2004-02-06 09:57:54 UTC

*** This issue has been marked as a duplicate of 34339 ***