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

# encode:url — Encode URL

ENCODE:URL encodes a value according to RFC 1738 by replacing non-alphanumeric characters except '-', '_' and '.' with a percent sign ('%') followed by a 2-character hexadecimal number.

ENCODE:URL is the complement of the DECODE:URL operation.

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| var | var |  | Result variable name |

### Children
- (none)

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

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

### Examples

```xml
<output>
	<encode:url>My name is iXML!</encode:url>
</output>

<!-- My%20name%20is%20iXML%21 -->
```
