기술 자료

Unity Engine

Unity Engine

UnEscapeURL

Converts URL-friendly escape sequences back to normal text.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.UnityWebRequestWWWModule

UnEscapeURL(string)

Converts URL-friendly escape sequences back to normal text.
경고
Deprecated. Use UnityWebRequest, a fully featured replacement which is more efficient and has additional features
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.

Examples

using UnityEngine;public class ExampleClass : MonoBehaviour{ void Start() { // Plain name is "Fish & Chips". var plainName = WWW.UnEscapeURL("Fish+%26+Chips"); }}

UnEscapeURL(string, Encoding)

Converts URL-friendly escape sequences back to normal text.
경고
Deprecated. Use UnityWebRequest, a fully featured replacement which is more efficient and has additional features
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.

Examples

using UnityEngine;public class ExampleClass : MonoBehaviour{ void Start() { // Plain name is "Fish & Chips". var plainName = WWW.UnEscapeURL("Fish+%26+Chips"); }}