> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
> Use this file to discover all available pages before exploring further.

> Reference material for ICU_NORMALIZE function

# ICU_NORMALIZE

Transliterate a string using a specified ICU transliterate ID.

## Syntax

```sql theme={"theme":{"light":"css-variables","dark":"css-variables"}}
ICU_NORMALIZE(<expression>, <transliterate_id>)
```

## Parameters

| Parameter            | Description                                                              | Supported input types |
| :------------------- | :----------------------------------------------------------------------- | :-------------------- |
| `<expression>`       | An input string to transliterate.                                        | `TEXT`                |
| `<transliterate_id>` | A valid [ICU library](https://icu.unicode.org/) transliterate ID string. | `TEXT`                |

## Return Type

The `ICU_NORMALIZE` function returns a result of type `TEXT`.

## Errors

If `<transliterate_id>` is invalid, an error is thrown.

## Examples

The following example normalizes the word 'München' using the Latin-ASCII transliterate ID:

<div className="query-window">
  ```
  SELECT ICU_NORMALIZE('München', 'Latin-ASCII') AS normalized_word;
  ```

  | normalized\_word <span>text</span> |
  | :--------------------------------- |
  | Munchen                            |

  <p><span>Rows: 1</span><span>Execution time: 5.18ms</span></p>
</div>

The following example applies a similar operation to the [UPPER](/reference-sql/functions-reference/string/upper) function:

<div className="query-window">
  ```
  SELECT ICU_NORMALIZE('AabB', 'Any-Upper[^xyzXYZ]') AS normalized_word;
  ```

  | normalized\_word <span>text</span> |
  | :--------------------------------- |
  | AABB                               |

  <p><span>Rows: 1</span><span>Execution time: 6.03ms</span></p>
</div>

The function only works for a valid ICU transliterate ID:

```sql theme={"theme":{"light":"css-variables","dark":"css-variables"}}
SELECT ICU_NORMALIZE('', 'X');
```

Fails with the following error:

```
Line 1, Column 8: Unsupported locale: X
select ICU_NORMALIZE('','X')
       ^
```
