Community
Participate
Working Groups
Build Identifier: 20100218-1602 The externalize strings capability of eclipse escapes ISO 8859-1 characters, even if that is not necessary (since properties files are ISO 8859-1). E.g. "�" becomes "\u00FC". This makes both the properties files less readable and might (in special cases) produce some different behavior depending on the encoding settings of your JVM Reproducible: Always Steps to Reproduce: 1. write code using a string that uses some special (but still ISO 8859-1) characters like "הצ��" 2. select "source/externalize strings" 3. see the messages.properties files and notice that the characters have been escaped
> might (in special cases) >produce some different behavior depending on the encoding settings of your JVM Can you give an example? Deepak, please investigate.
(In reply to comment #1) > > might (in special cases) > >produce some different behavior depending on the encoding settings of your JVM > Can you give an example? We had changed the encoding of your Java files to UTF-8 and wrote some unit-tests that compared strings with umlauts with those in message.properties (with escaped umlauts). Everything ran fine in eclipse, but not with ant (until we changed the encoding for Ant as well to UTF-8). This is probably a different problem, but I'm sure it could have been avoided if the umlauts would not have been escaped when generating the message.properties file.
>This is probably a different problem Exactly ;-)
Created attachment 175208 [details] fix + tests Fixed in HEAD. Now only the control characters, and NBSP (Non Breaking Space) will be escaped from the ISO-8859-1 character set. NBSP is escaped (to \u00A0) so that it is differentiated from the normal space character. I can change the behavior is someone thinks otherwise.
.
Verified in I20100802-1800.
*** Bug 324378 has been marked as a duplicate of this bug. ***