---
title: "URLENCODE"
description: "La fonction SQL URLENCODE d\u0027Invantive UniversalSQL encode un texte pour une utilisation dans une URL."
language: fr
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/fr/docs/invantive-universalsql/grammar/sql-functions/urlencode
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/urlencode
updated: 2026-12-04T14:43:26Z
license: https://documentation.invantive.eu/fr/
---

## Syntaxe
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> URLENCODE[URLENCODE]:::quoted
    URLENCODE --> End((END))
```

## Objet
La fonction SQL `URLENCODE` encode une URL.

Voir également [[URLDECODE]].

Paramètres :
- URL (`varchar2`) : URL à encoder.

Renvoie : l'URL encodée.

## Exemples
L'exemple suivant encode une URL :
```sql
select urlencode('https://www.nu.nl/?page%2dxx')

---------------------------------------
https%3A%2F%2Fwww.nu.nl%2F%3Fpage%252dxx
```
L'exemple suivant récupère l'élément `null`, car l'entrée est `null` :
```sql
select urlencode(null)

---------------------------------------

```

