## HttpUtility::UrlEncode(const System::ArrayPtr\<uint8_t\>\&) method


Encodes URI fragment.

```cpp
static String System::Web::HttpUtility::UrlEncode(const System::ArrayPtr<uint8_t> &bytes)
```


| Parameter | Type | Description |
| --- | --- | --- |
| bytes | const System::ArrayPtr\<uint8_t\>\& | URI fragment to encode. |

### ReturnValue

Encoded URI fragment.

## See Also

* Class [String](../../../system/string/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [HttpUtility](../)
* Namespace [System::Web](../../)
* Library [Aspose.PDF for C++](../../../)
## HttpUtility::UrlEncode(const System::ArrayPtr\<uint8_t\>\&, int32_t, int32_t) method


Encodes URI fragment.

```cpp
static String System::Web::HttpUtility::UrlEncode(const System::ArrayPtr<uint8_t> &bytes, int32_t offset, int32_t count)
```


| Parameter | Type | Description |
| --- | --- | --- |
| bytes | const System::ArrayPtr\<uint8_t\>\& | URI fragment to encode. |
| offset | int32_t | Offset in the given byte array. |
| count | int32_t | Number of bytes to read from. |

### ReturnValue

Encoded URI fragment.

## See Also

* Class [String](../../../system/string/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [HttpUtility](../)
* Namespace [System::Web](../../)
* Library [Aspose.PDF for C++](../../../)
## HttpUtility::UrlEncode(String) method


Encodes URI fragment.

```cpp
static String System::Web::HttpUtility::UrlEncode(String str)
```


| Parameter | Type | Description |
| --- | --- | --- |
| str | String | URI fragment to encode. |

### ReturnValue

Encoded URI fragment.

## See Also

* Class [String](../../../system/string/)
* Class [HttpUtility](../)
* Namespace [System::Web](../../)
* Library [Aspose.PDF for C++](../../../)
## HttpUtility::UrlEncode(String, const System::SharedPtr\<Text::Encoding\>\&) method


Encodes URI fragment.

```cpp
static String System::Web::HttpUtility::UrlEncode(String str, const System::SharedPtr<Text::Encoding> &e)
```


| Parameter | Type | Description |
| --- | --- | --- |
| str | String | URI fragment to encode. |
| e | const System::SharedPtr\<Text::Encoding\>\& | Encoding to use. |

### ReturnValue

Encoded URI fragment.

## See Also

* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Encoding](../../../system.text/encoding/)
* Class [HttpUtility](../)
* Namespace [System::Web](../../)
* Library [Aspose.PDF for C++](../../../)
