UnEscapeURL
Converts URL-friendly escape sequences back to normal text.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Networking
- Assembly: UnityEngine.UnityWebRequestModule
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. See Also: UnityWebRequest.EscapeURL.
Examples
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.
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. See Also: UnityWebRequest.EscapeURL.
Examples
using UnityEngine;using UnityEngine.Networking;public class ExampleClass : MonoBehaviour{ void Start() { string plainName = UnityWebRequest.UnEscapeURL("Fish+%26+Chips"); }}