on 11-12-2019 9:10 AM
Hello,
We are currently facing a problem with the WebIDE deployment process to our own SAPUI5 ABAP Repository.
We have a prepared an i18n.properties file, where all the German strings are saved.
If we start the application on the WebIDE itself, then the encoding of the strings works perfectly as expected. But when we are now trying to build and deploy the app on the ABAP repository, it will fail with the encoding. During the build process on the WebIDE, it convert the the i18n properties file in another encoding. We see the file here from the dist folder.
As a result, we see a wrong encoded application:
Now the question is, what can we do to set the correct charset and get the expected result.
Thanks in advance.
I had the similar problem and thanks to boghyon.hoffmann, he suggested me the solution on OpenUI5 Slack channel. (https://openui5.slack.com/archives/C61AA31MH/p1572532524039400?thread_ts=1572529459.031600&cid=C61AA31MH).
You need to set the propertiesFileSourceEncoding parameter in ui5.yaml file:
resources:
configuration:
propertiesFileSourceEncoding: UTF-8
I hope this can fix your problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the mention. 🙂 Just a small side note for other readers: the `propertiesFileSourceEncoding` is supported only as of @ui5/cli 1.7.0+
So in the package.json:
"devDependencies": {
"@ui5/cli": "<at least 1.7.0>",
...
},
___
The latest version can be found here: https://github.com/SAP/ui5-cli/releases
Or with the command: npm show @ui5/cli version
Hello everyone,
Thanks for the answers and comments. So I have added the three lines from 1bf660afcf81417ca60d42962287a506 in my .yml file.
It looks like this now, but unfortunately after the build, the properties file still looks the same.
I also have checked the package.json file as boghyon.hoffmann mentioned. The version matches with your suggestion.
{
"name": "zmmwe",
"version": "0.0.1",
"description": "",
"private": true,
"devDependencies": {
"@ui5/cli": "1.7.0",
"@sap/ui5-builder-webide-extension": "1.0.5"
},
"scripts": {
"build": "ui5 build --include-task=generateManifestBundle generateCachebusterInfo"
},
"ui5": {
"dependencies": [
"@sap/ui5-builder-webide-extension"
]
}
}
It'll again convert the encoding but this time the new conversion should be correct. Did you test the result on the browser?
User | Count |
---|---|
73 | |
9 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.