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 116975

Summary: Unicode character '\u0020' in prop file replaced by a space at save
Product: utilities Reporter: heismann <heismann>
Component: PropertiesAssignee: Marian Petras <mpetras>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description heismann 2007-09-27 18:18:57 UTC
The unicode character '\u0020', which represents a space character, is shown as a space in the properties editor, but
when the file is saved the unicode value is replaced with a white space.

In addition to fixing this bug, I believe the unicode replacement should be an option that can be toggled as well as the
collapsing of properties files from different locales under one.

Example:

Actual contents of the properties file:
##############################################################################
# String constants
##############################################################################
constant.space = '\u0020'

What netbeans shows and writes to the file:
##############################################################################
# String constants
##############################################################################
constant.space = ' '
Comment 1 Marian Petras 2007-09-28 15:03:23 UTC
This has been already reported as issue #114870 ("Properties editor messes up unicode escape sequences for the 'space'
character in properties files") and fixed. The fix will go to NetBeans 6.0 Beta 2. There is a binary patch applicable to
Beta 1, it is attached to issue #111530.

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