# UnEscapeURL

> Converts URL-friendly escape sequences back to normal text.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.UnityWebRequestWWWModule

## UnEscapeURL(string)

Converts URL-friendly escape sequences back to normal text.

> **Warning:**
>
> **Deprecated.** Use UnityWebRequest, a fully featured replacement which is more efficient and has additional features

```csharp
public static string UnEscapeURL(string s)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): A string containing escaped characters.

### Returns

| Type                                                           | Description |
| -------------------------------------------------------------- | ----------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) |             |

### Remarks

Certain text characters have special meanings when present in URLs. If you need to include those characters in URL parameters then you must represent them with escape sequences. This function takes a string containing these escape sequences and converts them back to normal text.

### Examples

```csharp
using UnityEngine;

public class ExampleClass : MonoBehaviour
{
    void Start()
    {
        // Plain name is "Fish & Chips".
        var plainName = WWW.UnEscapeURL("Fish+%26+Chips");
    }
}
```

## UnEscapeURL(string, Encoding)

Converts URL-friendly escape sequences back to normal text.

> **Warning:**
>
> **Deprecated.** Use UnityWebRequest, a fully featured replacement which is more efficient and has additional features

```csharp
public static string UnEscapeURL(string s, Encoding e)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): A string containing escaped characters.**** (\[Encoding]\(https\://learn.microsoft.com/dotnet/api/system.text.encoding)): The text encoding to use.

### Returns

| Type                                                           | Description |
| -------------------------------------------------------------- | ----------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) |             |

### Remarks

Certain text characters have special meanings when present in URLs. If you need to include those characters in URL parameters then you must represent them with escape sequences. This function takes a string containing these escape sequences and converts them back to normal text.

### Examples

```csharp
using UnityEngine;

public class ExampleClass : MonoBehaviour
{
    void Start()
    {
        // Plain name is "Fish & Chips".
        var plainName = WWW.UnEscapeURL("Fish+%26+Chips");
    }
}
```
