Unity forge
WWW.UnEscapeURL Manual     Reference     Scripting  
Scripting > Runtime Classes > WWW
WWW.UnEscapeURL
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Enumerations
  • History
  • Index
  • WWW
  • All Members
  • Variables
  • assetBundle
  • bytes
  • error
  • isDone
  • movie
  • oggVorbis
  • progress
  • text
  • texture
  • threadPriority
  • uploadProgress
  • url
  • Constructors
  • WWW
  • Functions
  • GetAudioClip
  • LoadImageIntoTexture
  • LoadUnityWeb
  • Class Functions
  • EscapeURL
  • LoadFromCacheOrDownload
  • UnEscapeURL

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

Parameters

Name Description
s An url escaped string to be converted.
e The encoding to use when converting the bytes to a character.

Returns

string - A new string with all occurrences of %xx replaced with the corresponding character.

Description

Decodes string from an URL-friendly format.

The inverse of WWW.EscapeURL.

See Also: WWW.EscapeURL.

JavaScripts
// This will print the string "Testing 1,2,3" to the console
print(WWW.UnEscapeURL("Testing%201%2C2%2C3"));

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
print(WWW.UnEscapeURL("Testing%201%2C2%2C3"));
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
print(WWW.UnEscapeURL('Testing%201%2C2%2C3'))


Unity3d Рекламный блок Unity3d



Установить Adobe Flash плеер
Ruslan Slobodianiuk © unity3dforge.com все права защищены

Полезные ресурсы:

Программа для создания скриншотов