CONVERT
The CONVERT function converts a String or binary input to another encoding format.
(This function should be used by a user familiar with data encoding conversion.)
Input/Output
Number of Connections: Min: 1/Max:3
| Input | Data Type | Description |
| Input1 | Binary,String | The String or binary data to convert. |
| Input2 | String | Sets the Input property. (optional) |
| Input3 | String | Sets the Output property. (optional) |
| Output | Data Type | Description |
| Output1 | Binary,String | The converted String or binary data. |
Property
| Name | Property Type | Description |
| Input | choice | If the input data is binary, this property specifies the input's encoding format:
| (AutoDetect) | - |
Attempts to automatically determine the encoding type. The encoding type selected may not be what the user expects.
|
| utf-8 | - |
Unicode utf-8
|
| shift_jis | - |
Shift JIS
|
| euc-jp | - |
EUC JP
|
| iso-2022-jp | - |
ISO-2022-JP
|
| Windows-31J | - |
Windows Japanese
|
| utf-16 | - |
Unicode utf-16
|
| us-ascii | - |
US-ASCII
|
|
| Output | choice | When encode the output, this property specifies the output's encoding format:
| (String) | - |
Use String object
|
| utf-8 | - |
unicode utf-8
|
| shift_jis | - |
Shift JIS
|
| euc-jp | - |
EUC-JP
|
| iso-2022-jp | - |
ISO-2022-JP
|
| utf-16 | - |
Unicode utf-16
|
| us-ascii | - |
US-ASCII
|
|
Topic
- In the case of binary input, the data is first converted to a Unicode String. Because of this, if converting data from shift_jis to euc-jp, it is possible that the resulting conversion may not be as expected.