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.
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.
Created attachment 5068 [details] screen shot 1: Japanese characters are appeared in [Form Editor].
Created attachment 5069 [details] screen shot 2: Unicode strings in [Value] text box.
Reassigning to i18n module
It seems to me that properties module should return for: A=\u41 "A" instead of "\u41"
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());
Thanks Martin. Fixed. PS: Why are properties API clients required to decode it explicitly? Every call must be wrapped to some UtilConvert.
Result is fine. Thank you all !!
Consistent use of the I18N keyword.