ComfyUI Node
decode
Converts a bytes-like string representation back to a text string. This node takes a string representation of bytes (like those produced by the StringEncode node) and converts it back to a regular text string using the specified encoding. Useful for processing encoded data received from files or network sources.
decode
- STRING
◄bytes_stringb''►
◄encoding▾►
◄errors▾►
CategoryBasic/STRING
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| bytes_string | STRING | b'' | — |
| encoding | COMBO | 6 options: utf-8, ascii, latin-1, utf-16, utf-32, cp1252 | |
| errors | COMBO | 4 options: strict, ignore, replace, backslashreplace |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |