You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since it is still Java default behaviour to expect .properties files in ISO-8859-1 I would stick to this behaviour.
Storing .properties files in any other encoding could easily break things in other (productive) enviroments. Therefore I'd prefer to fail early. This will encourage people to to store their .properties files in ISO-8859-1 and to encode special characters with \uXXXX syntax. This is what any intelligent editor would do anyways.
BTW: Files can be converted easily with Java tooling: native2ascii -encoding UTF-8 i18n-UTF8.properties i18n.properties
With UI5 CLI v1.7.0, you can now configure UTF-8 as the source encoding of a projects *.properties files. The default stays at ISO-8859-1. In both cases the UI5 Tooling will escape any non-ASCII characters, so that the build result is independent from the encoding.
Expected Behavior
See SAP-archive/connect-openui5#20
While this might be incompatible to current applications and libraries, we should look into it. A project setting might be already sufficient.
Current Behavior
.properties
files are always served with charsetISO-8859-1
(relevant code).Steps to reproduce the issue
Content-Type
header of the requested i18n file:Context
Affected components
Stack trace/log output
The text was updated successfully, but these errors were encountered: