Sjistoutf8 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions

SJISToUTF8

The SJISToUTF8 instruction converts a SJIS BYTE array to a UTF-8 text string.
Instruction
SJISToUTF8
SJIS to UTF-8
Character Code
Conversion
Variables
Name
Meaning
In[] (array)
SJIS array
to convert
Size
Number of
SJIS array
elements
Out
Resulting
text string
*1 The maximum number of elements is 1,986, including the NULL character (BYTE#16#00). The maximum number of ele-
ments is 1,985 without the NULL character.
*2 If you omit the input parameter, the default value is not applied. A building error will occur.
Bit strings
In[] (array)
OK
Size
Out
Function
The SJISToUTF8 instruction converts the elements in a SJIS array to convert in In[] (a BYTE array) to a
UTF-8 text string. Size number of elements are converted starting with In[0]. However, if there is a
NULL character (BYTE#16#00) before Size elements are converted, conversion is canceled at that
point.
The resulting text string after conversion is stored as resulting text string in Out. A NULL character is
placed at the end of Out.
2-424
Name
FB/FUN
FUN
I/O
Description
Array of SJIS character
codes to convert
Input
Number of elements of In[]
to convert
Output
UTF-8 text string after con-
version
OK
Graphic expression
(@)SJISToUTF8
EN
ENO
In
Out
Size
Valid range
*1
Depends on data type.
Depends on data type.
Integers
NY-series Instructions Reference Manual (W560)
ST expression
Out:=SJISToUTF8(In, Size);
Unit
Default
*2
---
---
---
---
Times, durations,
dates, and text strings
OK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents