HttpUtility.UrlEncodeUnicodeToBytes(String) Метод

Определение

Внимание!

This method produces non-standards-compliant output and has interoperability issues. The preferred alternative is UrlEncodeToBytes(String).

Преобразует строку Юникода в массив байтов.

public:
 static cli::array <System::Byte> ^ UrlEncodeUnicodeToBytes(System::String ^ str);
[System.Obsolete("This method produces non-standards-compliant output and has interoperability issues. The preferred alternative is UrlEncodeToBytes(String).")]
public static byte[]? UrlEncodeUnicodeToBytes(string? str);
public static byte[]? UrlEncodeUnicodeToBytes(string? str);
[System.Obsolete("This method produces non-standards-compliant output and has interoperability issues. The preferred alternative is UrlEncodeToBytes(String).")]
public static byte[] UrlEncodeUnicodeToBytes(string str);
public static byte[] UrlEncodeUnicodeToBytes(string str);
[<System.Obsolete("This method produces non-standards-compliant output and has interoperability issues. The preferred alternative is UrlEncodeToBytes(String).")>]
static member UrlEncodeUnicodeToBytes : string -> byte[]
static member UrlEncodeUnicodeToBytes : string -> byte[]
Public Shared Function UrlEncodeUnicodeToBytes (str As String) As Byte()

Параметры

str
String

Строка для преобразования.

Возвращаемое значение

Byte[]

Массив байтов.

Атрибуты

Комментарии

Если символы, такие как пустые и препинания, передаются в HTTP-потоке, они могут быть неправильно интерпретированы в конце получения. Кодировка URL-адресов преобразует символы, недопустимые в URL-адресе в эквиваленты сущностей символов; Декодирование URL-адреса изменяет кодировку. Например, при внедрении в блок текста, который передается в URL-адрес, символы < и > кодируются как %3c и %3e.

Применяется к

См. также раздел