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 89720

Summary: I18N - Cannot display Chinese characters in properties file
Product: utilities Reporter: javacafe <javacafe>
Component: PropertiesAssignee: Marian Petras <mpetras>
Status: RESOLVED FIXED    
Severity: blocker CC: janie, jiriprox, kfrank
Priority: P3 Keywords: I18N
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 32392, 97861    
Bug Blocks:    
Attachments: This is picture of IDE

Description javacafe 2006-11-21 08:53:49 UTC
This bug was said as fixed in 5.0, but exists in 5.5. (Why?)

My properties file is in default language and contains Chinese characters. But 
all Chinese is un-readable.
Comment 1 javacafe 2006-11-21 08:54:35 UTC
Created attachment 36159 [details]
This is picture of IDE
Comment 2 Marian Petras 2007-01-10 16:04:33 UTC
This bug cannot be fully fixed until support for other encodings is added to the
Properties module, which further depends on on issue #42638. These issues should
be fixed by Milestone 8 of NetBeans 6.0.

For the period before fixing these issues, I made a temporary change - when the
user opens a file containing characters with Unicode 0x007f or higher, a warning
message is displayed, informing about this deficiency.
Comment 4 Jana Maleckova 2007-01-12 13:17:32 UTC
This feature is functional in simple properties editor but it should be
implemented in advance editor as well.
Comment 5 Marian Petras 2007-04-18 16:29:25 UTC
Implementation and use of the specific encoding for .properties files (issue
#97861) resolved also this issue.

Modified files:
   ide/golden/deps.txt   (1.543)
   properties/manifest.mf   (1.69)
   properties/nbproject/project.xml   (1.12)
   properties/src/org/netbeans/modules/properties/:
                                       Bundle.properties   (1.76)
                                       PropertiesDataLoader.java   (1.29)
                                       PropertiesDataObject.java   (1.55)
                                       PropertiesEditorSupport.java   (1.88)
                                       PropertiesEncoding.java   (1.1 - new)
properties/test/unit/src/org/netbeans/modules/properties/:
                                       PropertiesEncodingTest.java   (1.1 - new)

Diffs:
http://ide.netbeans.org/source/browse/ide/golden/deps.txt?r1=1.542&r2=1.543&diff_format=u
http://properties.netbeans.org/source/browse/properties/manifest.mf?r1=1.68&r2=1.69&diff_format=u
http://properties.netbeans.org/source/browse/properties/nbproject/project.xml?r1=1.11&r2=1.12&diff_format=u
http://properties.netbeans.org/source/browse/properties/src/org/netbeans/modules/properties/Bundle.properties?r1=1.75&r2=1.76&diff_format=u
http://properties.netbeans.org/source/browse/properties/src/org/netbeans/modules/properties/PropertiesDataLoader.java?r1=1.28&r2=1.29&diff_format=u
http://properties.netbeans.org/source/browse/properties/src/org/netbeans/modules/properties/PropertiesDataObject.java?r1=1.54&r2=1.55&diff_format=u
http://properties.netbeans.org/source/browse/properties/src/org/netbeans/modules/properties/PropertiesEditorSupport.java?r1=1.87&r2=1.88&diff_format=u
http://properties.netbeans.org/source/browse/properties/src/org/netbeans/modules/properties/PropertiesEncoding.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://properties.netbeans.org/source/browse/properties/test/unit/src/org/netbeans/modules/properties/PropertiesEncodingTest.java?rev=1.1&content-type=text/vnd.viewcvs-markup
Comment 6 Ken Frank 2007-05-26 17:05:47 UTC
perhaps not related to this, but now, when
create a property file, can enter multibyte in the text version
of the file or in the property editor, with the columns for key value
and locale, and the multibyte looks ok.

but in the property editor with the columns, when change a value
or key, then go back to the text version, the multibyte is replaced
with the escapped ascii like \u3068\u7CAE

I think this is mentioned in some other issues but don't know what they
are, and dont know if this is expected behavior.

PS to submitter - if nb6, is the issue you filed about fixed ok ?


ken.frank@sun.com
Comment 7 Marian Petras 2007-06-20 18:36:57 UTC
Ken, the issue you describe is tracked as issue #102699 ("Characters entered in the table view should not be translated
to \uxxxx in the editor view").