# SetEncoding

Sets the character encoding (character set) of Form and URL scope variable values; used when the character encoding of the input to a form, or the character encoding of a URL, is not in UTF-8 encoding.

## Method Signature

```
SetEncoding(scope_name=[string], charset=[string])
```

### Arguments

| Argument     | Type     | Required | Description                                              | Default |
| ------------ | -------- | -------- | -------------------------------------------------------- | ------- |
| `scope_name` | `string` | `true`   | The name of the scope to set the character encoding for. |         |
| `charset`    | `string` | `true`   | The character encoding to set.                           |         |

## Examples

## Related

* [FileUpload](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/fileupload)
* [FileUploadAll](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/fileuploadall)
* [Forward](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/forward)
* [GetHTTPRequestData](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/gethttprequestdata)
* [GetHTTPTimeString](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/gethttptimestring)
* [GetPageContext](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/getpagecontext)
* [HtmlFooter](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/htmlfooter)
* [HtmlHead](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/htmlhead)
* [Location](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/location)
