## WebClient::set_Encoding method


Sets the encoding used to download or upload strings.

```cpp
void System::Net::WebClient::set_Encoding(const SharedPtr<Text::Encoding> &encoding)
```


| Parameter | Type | Description |
| --- | --- | --- |
| encoding | const SharedPtr\<Text::Encoding\>\& | The encoding to set. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Encoding](../../../system.text/encoding/)
* Class [WebClient](../)
* Namespace [System::Net](../../)
* Library [Aspose.PDF for C++](../../../)
