Mah*_*ari 1 sapui5 ui5-tooling
I have a SAPUI5 application. The translated text is shown wrongly in a dialog, while the translation is shown correct in the launchpad. Please see the following picture:
While the translation file is loaded for German language, it does not show [ÖÄÜß] correctly in the dialog. However it doesshows ö correctly in the launchpad page.
How can I solve it?
尝试在工具配置文件中设置/resources/configuration/propertiesFileSourceEncoding
为UTF-8
(通常为ui5.yaml
)。
在ui5.yaml
:
resources:
configuration:
propertiesFileSourceEncoding: UTF-8
Run Code Online (Sandbox Code Playgroud)并在package.json
:
"devDependencies": {
"@ui5/cli": "<at least 1.7.0>",
...
},
Run Code Online (Sandbox Code Playgroud)重新生成并再次部署该应用程序。
propertiesFileSourceEncoding
此选项指定
*.properties
项目文件的源编码。这些文件将以给定的编码读取,所有非ASCII字符将替换为相应的unicode转义序列。(文件)