# UnEscapeURL

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

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Networking](/engine/6000.3/script-reference/unityengine/networking.md)
* **Assembly:** UnityEngine.UnityWebRequestModule

## UnEscapeURL(string)

Converts URL-friendly escape sequences back to normal text.

```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. See Also: [UnityWebRequest.EscapeURL](/engine/6000.3/script-reference/unityengine/networking/unitywebrequest/escapeurl.md).

### Examples

```csharp
using UnityEngine;
using UnityEngine.Networking;

public class ExampleClass : MonoBehaviour
{
    void Start()
    {
        string plainName = UnityWebRequest.UnEscapeURL("Fish+%26+Chips");
    }
}
```

## UnEscapeURL(string, Encoding)

Converts URL-friendly escape sequences back to normal text.

```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. See Also: [UnityWebRequest.EscapeURL](/engine/6000.3/script-reference/unityengine/networking/unitywebrequest/escapeurl.md).

### Examples

```csharp
using UnityEngine;
using UnityEngine.Networking;

public class ExampleClass : MonoBehaviour
{
    void Start()
    {
        string plainName = UnityWebRequest.UnEscapeURL("Fish+%26+Chips");
    }
}
```
