ドキュメント

Unity Engine

Unity Engine

UnEscapeURL

Converts URL-friendly escape sequences back to normal text.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

A string containing escaped characters.

The text encoding to use.

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"); }}