---
title: supportsTextEncoding()
framework: webkit
role: symbol
role_heading: Instance Method
path: webkit/webdocumenttext/supportstextencoding()
---

# supportsTextEncoding()

Returns a Boolean value that indicates whether the web document supports text encoding.

## Declaration

```swift
func supportsTextEncoding() -> Bool
```

## Return Value

Return Value true if the web document supports text encoding; otherwise, false.
