UnEscapeURL
Converts URL-friendly escape sequences back to normal text.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.UnityWebRequestWWWModule
UnEscapeURL(string)
Converts URL-friendly escape sequences back to normal text.
public static string UnEscapeURL(string s)
Parameters
A string containing escaped characters.
Returns
Type | Description |
|---|---|
| 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.
using UnityEngine;public class ExampleClass : MonoBehaviour{ void Start() { // Plain name is "Fish & Chips". var plainName = WWW.UnEscapeURL("Fish+%26+Chips"); }}
Additional Resources: EscapeURL.
UnEscapeURL(string, Encoding)
Converts URL-friendly escape sequences back to normal text.
public static string UnEscapeURL(string s, Encoding e)
Parameters
Returns
Type | Description |
|---|---|
| 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.
using UnityEngine;public class ExampleClass : MonoBehaviour{ void Start() { // Plain name is "Fish & Chips". var plainName = WWW.UnEscapeURL("Fish+%26+Chips"); }}
Additional Resources: EscapeURL.