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.
Let's say we have a properties file with the following key: key=\u00F6zel If we change something and save the file Netbeans automatically lowercases all Utf8 escapes... after saving we'd get: key=\u00f6zel Even if we did not change the UTF-8 escape itself. This is not really friendly because that means that Netbeans changes parts of files where we did not change anything manually. And that makes merging of language files in larger projects painful. Especially if other members are using other tools. Maybe there is a way to just keep utf-8 escapes. Either lowercase or uppercase. Thanks!
Can you attach message.log? Do you use any plugins? I tested your case on Product Version: NetBeans IDE Dev (Build 20131216-0ec3997865ff) Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15 System: Linux version 3.0.0-32-generic running on amd64; UTF-8; en_US (nb) and I had uppercase after save.
In property file, there is some manipulating with encoding. I am sending to property team for evaluate.
Created attachment 143233 [details] File with "uppercase" utf-8 encodings
I attached a file that contains the following two lines: showPartnerSpecificCommissions=Mostrar comiss\u00F5es all=Tudo Please note that we got a "uppercase" utf-8 encoding (\u00F5). You can reproduce the issue (Netbeans 7.4) in two ways: 1) Open the file via "Edit" - Change "Tudo" to "Tudo!", save the file and you get a lowercased \u00f5 (lower case "f"). 2) Open the file via "Open" (useful for editing many language files at the same time). - Change "Tudo" to "Tudo!", save the file and you get a lowercased \u00f5 (lower case "f"). I am not the utf-8 escape expert, but I could not find any recommendation whether lower case unicode escapes are better or worse than upper case unicode escapes. Therefore I'd expect my editor to not change anything I did not change. Because if the Netbeans properties editor does change files in that way it makes diffs in version control systems huge. And this in turn makes it really hard to work in larger teams (that sometimes use different tools to generate those properties files). (Apart from it - the i18n properties editor is really great and we are loving to work with it :) )
I reopened this issue because it is still valid and has all the required details. When saving a file, only the edited lines should be modified.
I'm currently in a team where some developers (still) use IntelliJ IDEA. The default of the "Transparent native-to-ascii conversion" feature of IDEA is to convert all native characters to to uppercase unicode escapes, but Netbeans default converts all escapes unicode to lower case, which is a quite unsatisfying situation. Please make this feature configurable.
I'm working in an evironment, where my colleagues use Eclipse. The merge of properties files is a pain, since NetBean converts the UTF-8 escapes. It would be perfect when upper or lower case can be set in the options dialog. Thanks!