Symptom
- Arabic text in code and convert to question marks ("????") when concatenated with static Arabic text.
Environment
- SAP Cloud Application Studio
- SAP Business ByDesign
- SAP Cloud for Customer
Reproducing the Issue
- Open the script file `/YABCDEFCG_MAIN/SRC/CustomBOs/CustomBO-Root-Event-BeforeSave.absl`.
- Assign Arabic text to the variable 'TEST.content' as follows:
Example: TEST.content = " اختبار ";. - Activate the script file and reopen it.
- Observe that the Arabic text changes to question marks ("????").
Cause
The issue arises due to improper handling of Unicode text in SAP Cloud Application Studio when data cannot be saved in the default codepage.
Resolution
- Open SAP Cloud Application Studio.
- Navigate to the following path: Administration -> Options -> Environment -> Documents.
- Select the option "Save documents as Unicode when data cannot be saved in codepage".
- Activate the changes and verify if the Arabic text is correctly displayed.
- Refer to the blog for additional guidance on maintaining translations:
See Also
Refer to An easy way to message translation for maintaining translations.
Keywords
arabic text, unicode, question marks, ????,SAP Cloud Application Studio, ABSL scripting, output, text conversion , translation , script file, , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , Problem
Product
SAP Business ByDesign all versions ; SAP Cloud Applications Studio all versions ; SAP Cloud for Customer core applications all versions
SAP Knowledge Base Article - Public