--- title: Encode String sidebar: label: Encode order: 2 --- import SchemaInfo from '../../../../components/SchemaInfo.astro'; The `string.encode` processor takes a string and turns it into an array of bytes. This processor will return an error if the message being processed is not a string. ### Example ```yaml - id: encode type: string.encode ```