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 21617 - I18N - Form Editor: Unicode strings are appeared in [Value] text box.
Summary: I18N - Form Editor: Unicode strings are appeared in [Value] text box.
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: I18N (show other bugs)
Version: -FFJ-
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2002-03-15 10:21 UTC by hiroshiy
Modified: 2002-12-23 16:34 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screen shot 1: Japanese characters are appeared in [Form Editor]. (20.13 KB, image/gif)
2002-03-15 10:27 UTC, hiroshiy
Details
screen shot 2: Unicode strings in [Value] text box. (10.01 KB, image/gif)
2002-03-15 10:31 UTC, hiroshiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hiroshiy 2002-03-15 10:21:43 UTC
To Reproduce:
1. From [Component Inspector] in [Form Editor], create new [JTabbedPame].
2. Select [Layout] tab in right pane, click [...] in right side of
    [Tab Title] text box.
    [Property Editor] window of tab title is appeared.
3. Select [Resource Bundle] from [Select Mode] Drop-down List, input
    any name (only ascii characters) in [Key] field,
    input any name (which contains japanese characters), and click [OK].
4. Save changes.
5. Re-open [Property Editor] window of tab title.
    Unicode strings are appeared in [Value] text box.

Japanese users hopes, editable japanese characters are appeared 
in this text box.
Comment 1 hiroshiy 2002-03-15 10:27:25 UTC
Created attachment 5068 [details]
screen shot 1: Japanese characters are appeared in [Form Editor].
Comment 2 hiroshiy 2002-03-15 10:31:28 UTC
Created attachment 5069 [details]
screen shot 2: Unicode strings in [Value] text box.
Comment 3 Tomas Pavek 2002-03-15 10:42:32 UTC
Reassigning to i18n module
Comment 4 _ pkuzel 2002-04-09 16:43:24 UTC
It seems to me that properties module should return for: 

A=\u41

"A" instead of "\u41"
Comment 5 Martin Roskanin 2002-05-28 15:30:33 UTC
Properties module is OK.
key=\u0041 - value will be A
The bug is in i18n module.

Please consider the following diff:

RCS file:
/cvs/i18n/src/org/netbeans/modules/i18n/java/JavaResourceHolder.java,v
retrieving revision 1.3
diff -r1.3 JavaResourceHolder.java
67c67
<         return item == null ? null : item.getValue();
---
>         return item == null ? null :
UtilConvert.unicodesToChars(item.getValue());


Comment 6 _ pkuzel 2002-05-28 16:22:34 UTC
Thanks Martin.
Fixed.

PS: Why are properties API clients required to decode it explicitly?
Every call must be wrapped to some UtilConvert.
Comment 7 hiroshiy 2002-06-04 11:28:35 UTC
Result is fine. Thank you all !!
Comment 8 Jesse Glick 2002-12-23 16:34:45 UTC
Consistent use of the I18N keyword.