After deploying an SAP UI5 application special characters are not displayed correctly when maintained in .properties files. (i18n)

Problem

Labels, Placeholders, Messages etc. that contain special characters are not displayed correctly when you build or deploy your application. These texts are maintained in your i18n .properties files. The cause is a false encoding of these files in the build process.

Assumption

You didn’t changed the following files:

  • Gruntfile.js
  • ui5.yaml
  • package.json

Solution

Adapt your ui5.yaml file. Add the configuration option propertiesFileSourceEncoding to your ui5.yaml file and set it to UTF-8. (For more information see UI5 Tooling – Configuration – Encoding of *.properties files)

resources:
  configuration:
    propertiesFileSourceEncoding: "UTF-8"

There you go. When you build or deploy your library the next time the changes should apply.

Leave a Reply

Your email address will not be published. Required fields are marked *