ComfyUI Node

encode

Converts a string to bytes using the specified encoding. This node encodes text using different character encodings like UTF-8 (default), ASCII, or others. It's useful for preparing text for file saving or network transmission in specific formats.

By StableLlama·Created about a year ago·Updated 25 days ago· 45
encode
    • STRING
    string
    encoding
    errors
    CategoryBasic/STRING

    Inputs (3)

    NameTypeDefaultDescription
    stringSTRING
    encodingCOMBO6 options: utf-8, ascii, latin-1, utf-16, utf-32, cp1252
    errorsCOMBO5 options: strict, ignore, replace, xmlcharrefreplace, backslashreplace

    Outputs (1)

    NameTypeDescription
    STRINGSTRING