|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > String commands > !STR.- String Command > Convert String Commands > Convert String Operations |
MiniRobotLanguage (MRL)
STR.Utf To Chr
Converting strings encoded in UTF-8 format to their corresponding ANSI Format

Intention
The STR.Utf To Chr command in SPR-Script is designed for converting strings encoded in UTF-8 format to their corresponding ANSI character representations. This command is essential for handling text data that comes from sources using UTF-8 encoding, allowing for proper interpretation and display in systems that utilize ANSI character sets.
Syntax
STR.Utf To Chr|P1[|P2]
Parameter Explanation
P1 - Source variable. If P2 is missing then its also the destination variable
P2 - (optional) destination variable. If omitted the result is placed in the variable in P1.
Example
'***********************************
' STR.-Sample
'***********************************
VAS.$$UNA=Geschäftsbereich in
PRT.$$UNA|c
STR.UTF to CHR|$$UNA
PRT.$$UNA|c
MBX.After ->$$UNA<-
END.

Remarks
-
Limitations:
-
See also:
•