| Summary: | [nls tooling] externalize strings escapes ISO 8859-1 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Sebastian Dietrich <Sebastian.Dietrich> | ||||
| Component: | Text | Assignee: | Deepak Azad <deepakazad> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | daniel_megert, dasvipin5585, remy.suen | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | 3.7 M1 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Sebastian Dietrich
> 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. *** |