Convert String Operations

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > String commands > !STR.- String Command > Convert String Commands >

Convert String Operations

STR.Utf To Chr

Previous Top Next


MiniRobotLanguage (MRL)

 

STR.Utf To Chr

Converting strings encoded in UTF-8 format to their corresponding ANSI Format

 

clip0938

 

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.

 

clip0944

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: