UnityEngine.WWW.EscapeURL C# (CSharp) Method

EscapeURL() public static method

Escapes characters in a string to ensure they are URL-friendly.

public static EscapeURL ( string s, [ e ) : string
s string A string with characters to be escaped.
e [ The text encoding to use.
return string
        public static string EscapeURL(string s, [UnityEngine.Internal.DefaultValue("System.Text.Encoding.UTF8")] Encoding e)
        {
            if (s == null)
            {
                return null;
            }
            if (s == "")
            {
                return "";
            }
            if (e == null)
            {
                return null;
            }
            return WWWTranscoder.URLEncode(s, e);
        }

Same methods

WWW::EscapeURL ( string s ) : string

Usage Example

コード例 #1
0
ファイル: WWW.cs プロジェクト: zhkuang/UnityDecompiled
        public static string EscapeURL(string s)
        {
            Encoding uTF = Encoding.UTF8;

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