ICONV - Encode and Decode Functions
In this Page
The iconv encode and decode functions can be used to encode/decode strings into/from a specified encoding type. Supported types are UTF-8, UTF-16, and UTF-32.
encode
Description | Encodes a string in the specified encoding format and returns that as a byte array. |
---|---|
Syntax | |
Example | Expression: iconv.encode($msg,"UTF-8") where $msg contains a string "Hello, World". Result: "_snaptype_binary_base64": "/v8ASABlAGwAbABvACwAIABXAG8AcgBsAGQ=" |
decode
Description | Decodes an encoded byte array and returns a string in the specified encoding type. |
---|---|
Syntax | |
Example | Expression: iconv.decode($msg_encoded,"UTF-8") where $msg_encoded contains an encoded string. Result: "Hello, World" |
Have feedback? Email documentation@snaplogic.com | Ask a question in the SnapLogic Community
© 2017-2024 SnapLogic, Inc.