String Encode
Encode a UTF-8 string into various string-based formats like Base64, Hex, UTF-16, UTF-32, or apply escape sequences for HTML, URL, JSON, and XML.
Inputs#
| Port | Description |
|---|---|
| The UTF-8 string to encode. | |
| The encoding operation to apply. |
Outputs#
| Port | Description |
|---|---|
| The resulting encoded string. |
Addendum#
Encoding Operations#
This node takes a standard UTF-8 string and encodes it.
-
Printable Formats (Base64, Hex, etc.): These operations produce a human-readable ASCII string.
-
Raw Byte Formats (UTF-16, UTF-32): These operations produce a string object containing the raw encoded bytes. This output will not be human-readable and is intended to be used with the
String Decodenode. -
Escape Formats (HTML, URL, JSON, XML): These operations escape special characters in the input string to make them safe for use in the respective context.
ID: core/string-encode@v1