---
title: "encode:csv — Encode CSV"
description: "iXML command encode:csv: Encode CSV."
canonical_url: "https://www.zeyos.com/ixml/ref/encode-csv"
markdown_url: "https://www.zeyos.com/ai/guide/ixml/ref/encode-csv.md"
section: "ixml-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/ixmldoc.xml"
source_sha256: "a23f04e6a98628ca3c273c3b8dd2c33c034cfda3e0f00478d8793074fd2f70dd"
---

# encode:csv — Encode CSV

ENCODE:CSV joins the items of a multidimensional array to comma-separated values.

Comma-separated values represent tabular data. Each line corresponds to a row in the table. Within a line, fields are separated by a delimiter, each field belonging to one table column.

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| var | var |  | Variable name |
| var_result | var |  | Result variable name |
| delimiter | string | ; | Delimiter |
| enclose | bool |  | Enclose values |

### Children
- (none)

### Parents
- (not restricted in the reference)

### Result
- binding: var_result; type: string

### Examples

```xml
<array var="names">
	<array>
		<item>First Name</item>
		<item>Last Name</item>
	</array>

	<array>
		<item>Bill</item>
		<item>Gates</item>
	</array>

	<array>
		<item>Steve</item>
		<item>Jobs</item>
	</array>
</array>

<output>
	<encode:csv var="names" delimiter=";"/>
</output>

<!--
"First Name";"Last Name"
Bill;Gates
Steve;Jobs
-->
```
