<< Click to Display Table of Contents >> Navigation: 3. Script Language > String commands > !Unicode-Conversion > String Commands * Unicode Conversion |
MiniRobotLanguage (MRL)
ATU. Command
ANSI to Unicode
Intention
This command returns Text in P1 converted to Unicode 2-Byte Format.
' Use it with 1 or 2 Parameters
$$TXT=ABCDEFGHIJK
PRT.$$TXT|h
ATU.$$TXT
PRT.$$TXT|h
MBX. Ready
' Or use it like this
$$TXT=ABCDEFGHIJK
ATU.$$TXT|$$TAR
PRT.$$TXT|h
PRT.$$TAR|h
MBX. Ready
Syntax
ATU.[P1][|P2]
Parameter Explanation
P1 - Input String in Variable. If P2 is omitted the result will also be placed in P1.
P2 - (optional) Variable to return the Unicode-Result.
Example
-
Remarks
This command is the counterpart of the UTA. - Command.
Limitations:
The theoretical maximum length of a variable /text / string is 2 GB. In real life, it is less, because variables need string memory and that must not be fragmented. After all the maximum size of a variable on your system depends on the amount of RAM that is available, and it depends on how fragmented your memory is. Under normal circumstances several hundred MegaBytes should be no problem.
See also:
• 1.5.2 Working with Text-Strings
• VAR. - Variable Set Value/Clear
• IVS. / NVS. - If-Variable-String
• SBD. - String between Delimiter
• SBM. - String between Delimiter-Multiple