SAP Knowledge Base Article - Public

3650617 - Other language text conversion issue show ? in ABSL in SAP Cloud Application Studio

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

  1. Open the script file `/YABCDEFCG_MAIN/SRC/CustomBOs/CustomBO-Root-Event-BeforeSave.absl`.
  2. Assign Arabic text to the variable 'TEST.content' as follows:
    Example: TEST.content = " اختبار ";.
  3. Activate the script file and reopen it.
  4. 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

  1. Open SAP Cloud Application Studio.
  2. Navigate to the following path: Administration -> Options -> Environment -> Documents.
  3. Select the option "Save documents as Unicode when data cannot be saved in codepage".
  4. Activate the changes and verify if the Arabic text is correctly displayed.
  5. 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