UnityEngine.WWW.UnEscapeURL C# (CSharp) Method

UnEscapeURL() public static method

Converts URL-friendly escape sequences back to normal text.

public static UnEscapeURL ( string s, [ e ) : string
s string A string containing escaped characters.
e [ The text encoding to use.
return string
        public static string UnEscapeURL(string s, [UnityEngine.Internal.DefaultValue("System.Text.Encoding.UTF8")] Encoding e)
        {
            if (s == null)
            {
                return null;
            }
            if ((s.IndexOf('%') == -1) && (s.IndexOf('+') == -1))
            {
                return s;
            }
            return WWWTranscoder.URLDecode(s, e);
        }

Same methods

WWW::UnEscapeURL ( string s ) : string

Usage Example

Esempio n. 1
0
        public static string UnEscapeURL(string s)
        {
            Encoding uTF = Encoding.UTF8;

            return(WWW.UnEscapeURL(s, uTF));
        }
All Usage Examples Of UnityEngine.WWW::UnEscapeURL