public static Encode ( byte input, byte escapeChar, byte space, byte forbidden, bool uppercase ) : byte[] | ||
input | byte | |
escapeChar | byte | |
space | byte | |
forbidden | byte | |
uppercase | bool | |
Résultat | byte[] |
public static byte[] URLEncode(byte[] toEncode) { return(WWWTranscoder.Encode(toEncode, WWWTranscoder.urlEscapeChar, WWWTranscoder.urlSpace, WWWTranscoder.urlForbidden, false)); }
public static string URLEncode(string toEncode, Encoding e) { byte[] array = WWWTranscoder.Encode(e.GetBytes(toEncode), WWWTranscoder.urlEscapeChar, WWWTranscoder.urlSpace, WWWTranscoder.urlForbidden, false); return(WWWForm.DefaultEncoding.GetString(array, 0, array.Length)); }
public static string QPEncode(string toEncode, Encoding e) { byte[] array = WWWTranscoder.Encode(e.GetBytes(toEncode), WWWTranscoder.qpEscapeChar, WWWTranscoder.qpSpace, WWWTranscoder.qpForbidden, true); return(WWWForm.DefaultEncoding.GetString(array, 0, array.Length)); }
public static byte[] QPEncode(byte[] toEncode) { return(WWWTranscoder.Encode(toEncode, WWWTranscoder.qpEscapeChar, WWWTranscoder.qpSpace, WWWTranscoder.qpForbidden, true)); }
public static string QPEncode(string toEncode, [DefaultValue("Encoding.UTF8")] Encoding e) { byte[] bytes = WWWTranscoder.Encode(e.GetBytes(toEncode), WWWTranscoder.qpEscapeChar, WWWTranscoder.qpSpace, WWWTranscoder.qpForbidden, true); return(WWW.DefaultEncoding.GetString(bytes, 0, bytes.Length)); }