We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"你好" -> "你好"
"你好" -> "ä½ å¥½ï¼�é�¹å��ç��"
sap.ui.getCore().getConfiguration().setLanguage("zh");
HELLO_WORD=你好
<Text text="{i18n>HELLO_WORD}">
Here is a similar problem i18n.properties responds with wrong charset SAP/ui5-cli#196 But i don't think it has been fixed.
So, please help me to solve the problem. Thank you
The text was updated successfully, but these errors were encountered:
And I import my project into webide. The charset is correct.
Sorry, something went wrong.
Hey @zouyi100,
In step 5, do you use the ui5 serve command or do you use ui5 build to build the app and test it using a different server?
ui5 serve
ui5 build
Hi, @RandomByte
In step 5, I used the ui5 serve -o index.html command. And the Chinese words became mass code.
ui5 serve -o index.html
But when I use the 'go live' module in vscode. it works.
Also, I have run ui5 build and deploy the dist folder to SCP Cloud Foundry env, and it is also the mass code.
Thank you!
Thanks. Have you already tried setting the propertiesFileSourceEncoding configuration in your ui5.yaml to UTF-8?
propertiesFileSourceEncoding
UTF-8
Documentation: https://sap.github.io/ui5-tooling/pages/Configuration/#encoding-of-properties-files
Example: https://github.com/SAP-samples/openui5-sample-app/blob/master/ui5.yaml
It works, Thank you!
No branches or pull requests
Expected Behavior
"你好" -> "你好"
Current Behavior
"你好" -> "ä½ å¥½ï¼�é�¹å��ç��"
Steps to reproduce the issue
sap.ui.getCore().getConfiguration().setLanguage("zh");
to set language to chineseHELLO_WORD=你好
<Text text="{i18n>HELLO_WORD}">
Context
Here is a similar problem i18n.properties responds with wrong charset SAP/ui5-cli#196
But i don't think it has been fixed.
So, please help me to solve the problem. Thank you
The text was updated successfully, but these errors were encountered: