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 23266 - I18N-java file could not be encoded in UTF-8
Summary: I18N-java file could not be encoded in UTF-8
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords: I18N
: 22735 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-05-09 03:57 UTC by gautham mudra
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
garbage displayed with UTF-8 encoding (36.44 KB, image/gif)
2002-05-09 04:03 UTC, gautham mudra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gautham mudra 2002-05-09 03:57:35 UTC
When i change the  default encoding of a .java
file to UTF-8 i see garbage on the screen instead
of multibyte characters.
The multibyte prefix and suffix appear because i
am testing a pseudolocalized version of FFJ.

Steps:
1.open a .java file in the source editor.
2.select the .java file in the Explorer and from
the contextual menu choose properties.
3.Then click on the tab "Text" and type UTF-8 in
the "encoding" text field.
4. Then close the .java file in the source editor
and open it.
 
Also i see a small "x" on the .java file in the
explorer.I have attached a snapshot.

Build:020506
Comment 1 gautham mudra 2002-05-09 04:03:04 UTC
Created attachment 5674 [details]
garbage displayed with UTF-8 encoding
Comment 2 _ ttran 2002-05-09 10:03:11 UTC
-> java module
Comment 3 Svata Dedic 2002-05-09 16:27:40 UTC
Will investigate.
Comment 4 Svata Dedic 2002-05-17 16:54:52 UTC
Can you, please, attach some simple utf-8 encoded text w/ Japanese
characters inside ? Thanks.
Comment 5 Tomas Hurka 2002-05-20 17:11:32 UTC
Fixed in trunk. 
Checking in JavaParserGlue.java;
/cvs/java/src/org/netbeans/modules/java/JavaParserGlue.java,v  <-- 
JavaParserGlue.java
new revision: 1.35; previous revision: 1.34
done
Comment 6 Svata Dedic 2002-05-24 08:28:37 UTC
*** Issue 22735 has been marked as a duplicate of this issue. ***
Comment 7 hiroshiy 2002-06-04 11:30:21 UTC
Sol 8 environment is OK with your modification. 
But, this issue is reappeared in my Win 2000 environment.
Please re-confirm this issue.
Comment 8 Jan Becicka 2002-06-12 10:35:53 UTC
Hiroshi, can you check it in latest builds? 
I've tested it in 200206120100 in W2k and 
Solaris 8 and it works for me.
Thanks
Comment 9 hiroshiy 2002-06-13 02:29:22 UTC
Hello Jan,

In currently latest build, 
This issue is not re-appeared.
(Build 020621_1 on Win2K)

Thank you.
Comment 10 Jan Becicka 2002-06-27 15:50:01 UTC
VERIFIED
Comment 11 Jesse Glick 2002-12-23 16:48:02 UTC
Consistent use of the I18N keyword.
Comment 12 Quality Engineering 2003-07-01 13:21:06 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.