UnityEngine.WWWTranscoder.URLDecode C# (CSharp) Method

URLDecode() public static method

public static URLDecode ( string toEncode, [ e ) : string
toEncode string
e [
return string
        public static string URLDecode(string toEncode, [DefaultValue("Encoding.UTF8")] Encoding e)
        {
            byte[] bytes = Decode(WWW.DefaultEncoding.GetBytes(toEncode), urlEscapeChar, urlSpace);
            return e.GetString(bytes, 0, bytes.Length);
        }

Same methods

WWWTranscoder::URLDecode ( byte toEncode ) : byte[]
WWWTranscoder::URLDecode ( string toEncode ) : string

Usage Example

コード例 #1
0
 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));
 }
All Usage Examples Of UnityEngine.WWWTranscoder::URLDecode