作者:lailin2025 | 来源:互联网 | 2022-10-10 03:34
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?
1> Boghyon Hoff..:
尝试在工具配置文件中设置/resources/configuration/propertiesFileSourceEncoding
为UTF-8
(通常为ui5.yaml
)。
在ui5.yaml
:
resources:
configuration:
propertiesFileSourceEncoding: UTF-8
并在package.json
:
"devDependencies": {
"@ui5/cli": "",
...
},
重新生成并再次部署该应用程序。
关于 propertiesFileSourceEncoding
此选项指定*.properties
项目文件的源编码。这些文件将以给定的编码读取,所有非ASCII字符将替换为相应的unicode转义序列。(文件)