Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Suggest a change


static function UnEscapeURL(s: string, e: Encoding = System.Text.Encoding.UTF8): string;
static string UnEscapeURL(string s, Encoding e = System.Text.Encoding.UTF8);
static def UnEscapeURL(s as string, e as Encoding = System.Text.Encoding.UTF8) as string


sA string containing escaped characters.
eThe text encoding to use.


Converts URL-friendly escape sequences back to normal text.

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.

function Start () {
	// Plain name is "Fish & Chips".
	var plainName = WWW.UnEscapeURL('Fish+%26+Chips');
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
    void Start() {
        string plainName = WWW.UnEscapeURL("Fish+%26+Chips");
import UnityEngine
import System.Collections

public class ExampleClass(MonoBehaviour):

	def Start() as void:
		plainName as string = WWW.UnEscapeURL('Fish+%26+Chips')

See Also: EscapeURL.

Your name (optional):
Your email (optional):
Please write your suggestion here: