---
title: textEncodingName
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/webdatasource/textencodingname
---

# textEncodingName

The text encoding for the data source’s web view, if set, or the text encoding of the response.

## Declaration

```swift
var textEncodingName: String! { get }
```

## See Also

### Querying page data and state

- [data](webkit/webdatasource/data.md)
- [isLoading](webkit/webdatasource/isloading.md)
- [pageTitle](webkit/webdatasource/pagetitle.md)
- [representation](webkit/webdatasource/representation.md)
