## WebClient::set_Encoding method


设置用于下载或上传字符串的编码。

```cpp
void System::Net::WebClient::set_Encoding(const SharedPtr<Text::Encoding> &encoding)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| encoding | const SharedPtr\<Text::Encoding\>\& | 要设置的编码。 |

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Encoding](../../../system.text/encoding/)
* Class [WebClient](../)
* Namespace [System::Net](../../)
* Library [Aspose.Page for C++](../../../)
